services

package
v0.0.0-...-38dfcaa Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2016 License: Apache-2.0 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

Jump to

Keyboard shortcuts

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