service

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound       = errors.New("Object not found")
	ErrAlreadyExists  = errors.New("Object already exists")
	ErrNotImplemented = errors.New("Not implemented")
)

Error collection

Functions

This section is empty.

Types

type CredentialService

type CredentialService interface {
	Register(ctx context.Context, email, password, confirmPass string, claims map[string]interface{}) error
	Login(ctx context.Context, email, password string) (model.AccessToken, model.RefreshToken, error)
	Get(ctx context.Context, email string) (model.Credential, error)
	SetClaims(ctx context.Context, email string, claims json.RawMessage) (model.AccessToken, model.RefreshToken, error)
}

CredentialService Contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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