service

package
v0.0.0-...-74c6e08 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Users

type Users interface {
	SaveUser(ctxt, *models.User) (*models.User, error)
	GetUser(ctxt, string) (*models.User, error)
	GetByEmail(ctxt, string) (*models.User, error)
	DeleteUser(ctxt, string) (string, error)
	UpdateUser(ctxt, *models.User) (*models.User, error)
	LoginUser(ctxt, string, string) (string, error)
	LoginAdmin(ctxt, string, string) (string, error)
	IsAdmin(ctxt, string) (bool, error)
}

func New

func New(repository models.UsersRepository, auth client.Auth) Users

/ New creates a new user service

Jump to

Keyboard shortcuts

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