interfaces

package
v0.0.0-...-e1e7ebf Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

type AccountService interface {
	Authorize(userId string, authorize dto.AuthorizeAccountDTO) (*model.User, error)
	Register(userId string, register dto.RegisterAccountDTO) (*model.User, error)
}

type DatabaseProvider

type DatabaseProvider interface {
	GetDatabase() (*mgo.Database, error)
	Shutdown()
}

type EventBus

type EventBus interface {
	StartListen() error
	Shutdown()
}

type GameService

type GameService interface {
	GetById(id string) (*model.Game, error)
	GetListGames(search string, offset int, limit int, order string) ([]model.Game, error)
}

type MfaService

type MfaService interface {
	Add(userId string, providerId string) error
	List(userId string) ([]dto.MfaProviderDTO, error)
	Remove(userId string, providerId string) error
}

type ProfileService

type ProfileService interface {
	GetAccount(userId string) (*model.User, error)
	UpdateAccount(userId string, update dto.UpdateUserDTO) (*model.User, error)
}

Jump to

Keyboard shortcuts

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