Documentation ¶
Index ¶
- type CheckersService
- func (p *CheckersService) CopySession() *mgo.Session
- func (p *CheckersService) CountCheckers(query map[string]interface{}) (int, error)
- func (p *CheckersService) DeleteCheckerBySlug(slug string) error
- func (p *CheckersService) GetAllCheckers(q map[string]interface{}) ([]interface{}, error)
- func (p *CheckersService) GetCheckerBySlug(slug string) (interface{}, error)
- func (p *CheckersService) InsertChecker(checker interface{}) error
- func (p *CheckersService) UpdateCheckerBySlug(slug string, UpdateData interface{}) error
- type EventService
- type UsersService
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
Click to show internal directories.
Click to hide internal directories.