users_service

package
v0.0.0-...-cb81f4d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetUser(int64) (*users.User, rest_errors.RestErr)
	CreateUser(users.User) (*users.User, rest_errors.RestErr)
	//UpdateUser(bool, users.User) (*users.User, rest_errors.RestErr)
	//DeleteUser(int64) rest_errors.RestErr
	//SearchUser(string) (users.Users, rest_errors.RestErr)
	LoginUser(users.LoginRequest) (*access_token.AccessToken, rest_errors.RestErr)
	Logout(int64, int64) rest_errors.RestErr
	Refresh(int64, int64) (*access_token.AccessToken, rest_errors.RestErr)
}

func NewService

func NewService(usersRepo rest.RestUsersRepository, dbRepo db.DbRepository) Service

Jump to

Keyboard shortcuts

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