service

package
v0.0.0-...-a03fb21 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionService

type SessionService interface {
	GetAllByUser(u *model.User) ([]*model.Session, error)
	GetByID(id uint) (*model.Session, error)
	GetByUuid(uuid string) (*model.Session, error)
	Store(*model.Session) (*model.Session, error)
	Delete(id uint) (bool, error)
}

func NewSessionService

func NewSessionService(repo repository.SessionRepository) SessionService

Initiation method

type UserService

type UserService interface {
	//Fetch(cursor string, num uint) ([]*model.User, string, error)
	GetAll() ([]*model.User, error)
	GetByID(id uint) (*model.User, error)
	GetByEmail(email string) (*model.User, error)
	Update(u *model.User) (*model.User, error)
	Store(*model.User) (*model.User, error)
	Delete(id uint) (bool, error)
}

func NewUserService

func NewUserService(repo repository.UserRepository) UserService

Initiation method

Jump to

Keyboard shortcuts

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