storage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessStorage

type AccessStorage interface {
	Create(data face.Access) error
	BindUser(token string, userId string) error
	Get(token string) (face.Access, error)
	GetByRefreshToken(token string) (face.Access, error)
	RemoveAuthorize(token string) error
	RemoveRefresh(token string) error
}

type AuthorizeStorage

type AuthorizeStorage interface {
	Get(code string) (face.Authorize, error)
	Create(authorize face.Authorize) error
	BindUser(code string, userId string) error
}

type ClientStorage

type ClientStorage interface {
	Create(face.Client) error
	Get(clientId string) (face.Client, error)
}

type UserStorage

type UserStorage interface {
	Create(face.User) error
	GetId(code string, password string) (string, error)
	GetById(userId string) (face.User, error)
	GetByPassword(code string, password string) (face.User, error)
}

Jump to

Keyboard shortcuts

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