account

package
v0.0.0-...-7238798 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasswordInvalid = errors.New("password is invalid")
	ErrInternal        = errors.New("internal error")

	DefaultHTTPRequestTimeout = 1 * time.Second
)

Functions

This section is empty.

Types

type AccountProvider

type AccountProvider interface {
	CheckPassword(username, password string) (UserID, error)
}

func NewAccountProvider

func NewAccountProvider(conf config.AccountServiceConfig) AccountProvider

type UserID

type UserID string

func UserIDFromInt64

func UserIDFromInt64(i int64) UserID

func (UserID) String

func (id UserID) String() string

Jump to

Keyboard shortcuts

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