auth

package
v0.0.0-...-a3a9e33 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnauthorizedError = errors.New("401 Unauthorized")

Functions

This section is empty.

Types

type Auth

type Auth struct {

	//conf    *config_client.ConfClient
	Account store.Account
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, log *zap.SugaredLogger, store *store.Store) *Auth

func (*Auth) Auth

func (a *Auth) Auth(ctx context.Context) context.Context

func (*Auth) AuthJob

func (a *Auth) AuthJob()

func (*Auth) AuthLogin

func (a *Auth) AuthLogin(ctx context.Context) context.Context

func (*Auth) AuthRound

func (a *Auth) AuthRound(ctx context.Context) error

func (*Auth) CheckLogin

func (a *Auth) CheckLogin(ctx context.Context) error

func (*Auth) Login

func (a *Auth) Login(ctx context.Context) error

Jump to

Keyboard shortcuts

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