services

package
v0.0.0-...-226c3a4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DefaultUsersService

type DefaultUsersService struct {
	Repository repositories.UsersRepository
	// contains filtered or unexported fields
}

func (*DefaultUsersService) Create

func (s *DefaultUsersService) Create(username, password, email string) (u *models.User, err error)

func (*DefaultUsersService) Verify

func (s *DefaultUsersService) Verify(username, password string) (valid bool, err error)

type UsersService

type UsersService interface {
	//Get(ID uint64) (*models.Detail, error)
	Create(username, password, email string) (*models.User, error)
	Verify(username, password string) (valid bool, err error)
}

func CreateUsersService

func CreateUsersService(cf string, sto repositories.UsersRepository) (UsersService, error)

func NewDetailService

func NewDetailService(logger *zap.Logger, Repository repositories.UsersRepository) UsersService

Jump to

Keyboard shortcuts

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