services

package
v0.0.0-...-4500e45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2014 License: BSD-2-Clause-Views Imports: 4 Imported by: 0

Documentation

Overview

Package services implements boilerplate code for all services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	MongoSession *mgo.Session
	UserID       string
}

Service contains common properties for all services.

func (*Service) DBAction

func (service *Service) DBAction(databaseName string, collectionName string, dbCall mongo.DBCall) (err error)

DBAction executes the MongoDB literal function

func (*Service) Finish

func (service *Service) Finish() (err error)

Finish is called after the controller.

func (*Service) Prepare

func (service *Service) Prepare() (err error)

Prepare is called before any controller.

Directories

Path Synopsis
Package buoyService implements the service for the buoy functionality.
Package buoyService implements the service for the buoy functionality.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL