mongo

package
v0.0.0-...-ade0808 Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckersService

type CheckersService struct {
	CollName string
	// contains filtered or unexported fields
}

func NewCheckersService

func NewCheckersService(session *mgo.Session, collName string) *CheckersService

func (*CheckersService) CopySession

func (p *CheckersService) CopySession() *mgo.Session

for more flexible use

func (*CheckersService) CountCheckers

func (p *CheckersService) CountCheckers(query map[string]interface{}) (int, error)

func (*CheckersService) DeleteCheckerBySlug

func (p *CheckersService) DeleteCheckerBySlug(slug string) error

func (*CheckersService) GetAllCheckers

func (p *CheckersService) GetAllCheckers(q map[string]interface{}) ([]interface{}, error)

func (*CheckersService) GetCheckerBySlug

func (p *CheckersService) GetCheckerBySlug(slug string) (interface{}, error)

func (*CheckersService) InsertChecker

func (p *CheckersService) InsertChecker(checker interface{}) error

func (*CheckersService) UpdateCheckerBySlug

func (p *CheckersService) UpdateCheckerBySlug(slug string, UpdateData interface{}) error

type EventService

type EventService struct {
	CollName string
	// contains filtered or unexported fields
}

func NewEventService

func NewEventService(session *mgo.Session, collName string) *EventService

func (*EventService) CopySession

func (p *EventService) CopySession() *mgo.Session

for more flexible use

func (*EventService) CountEvents

func (p *EventService) CountEvents(query map[string]interface{}) (int, error)

func (*EventService) GetAllEvents

func (p *EventService) GetAllEvents(q map[string]interface{}) ([]gopatrol.Event, error)

func (*EventService) InsertEvent

func (p *EventService) InsertEvent(event gopatrol.Event) error

type UsersService

type UsersService struct {
	CollName string
	// contains filtered or unexported fields
}

func NewUsersService

func NewUsersService(session *mgo.Session, collName string) *UsersService

func (*UsersService) CopySession

func (p *UsersService) CopySession() *mgo.Session

for more flexible use

func (*UsersService) Login

func (p *UsersService) Login(email, plainPassword string) (gopatrol.User, error)

func (*UsersService) Register

func (p *UsersService) Register(name, email, role, plainPassword string) error

Jump to

Keyboard shortcuts

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