service

package
v0.0.0-...-cc62b12 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrantTypeAccess  = "access"
	GrantTypeRefresh = "refresh"
)

Variables

This section is empty.

Functions

func GeneratePasswordHash

func GeneratePasswordHash(s string) (string, error)

func InitData

func InitData(ctx context.Context) error

func InitServiceBean

func InitServiceBean(c config.Config) []interface{}

Types

type AuthenticationService

type AuthenticationService interface {
	Login(ctx context.Context, loginReq apisv1.LoginRequest) (*apisv1.LoginResponse, error)
}

func NewAuthenticationService

func NewAuthenticationService() AuthenticationService

type DataInit

type DataInit interface {
	Init(ctx context.Context) error
}

type UserService

type UserService interface {
	Init(ctx context.Context) error
}

func NewUserService

func NewUserService() UserService

NewUserService new User service

Jump to

Keyboard shortcuts

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