redis

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokensDatabase = 2
	RedisURL       = "redis:6379"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientStore

type ClientStore struct {
	// contains filtered or unexported fields
}

func NewClientStore

func NewClientStore() *ClientStore

func (*ClientStore) GetByID

func (s *ClientStore) GetByID(ID string) (oauth2.ClientInfo, error)

func (*ClientStore) Save

func (s *ClientStore) Save(client *models.Client) error

type PasswordStore

type PasswordStore struct {
	// contains filtered or unexported fields
}

func NewPasswordStore

func NewPasswordStore() *PasswordStore

func (*PasswordStore) Password

func (s *PasswordStore) Password(Username string) (*domain.Password, error)

func (*PasswordStore) Save

func (s *PasswordStore) Save(pwd *domain.Password) error

Jump to

Keyboard shortcuts

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