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
Click to show internal directories.
Click to hide internal directories.