store

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth

func NewAuth(opts ...auth.Option) auth.Auth

NewAuth returns an instance of store auth

Types

type Auth

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

func (*Auth) Generate

func (a *Auth) Generate(id string, opts ...auth.GenerateOption) (*auth.Account, error)

Generate a new auth Account

func (*Auth) Init

func (a *Auth) Init(opts ...auth.Option) error

Init the auth package

func (*Auth) Options

func (a *Auth) Options() auth.Options

Options returns the options set

func (*Auth) Revoke

func (a *Auth) Revoke(token string) error

Revoke an authorization Account

func (*Auth) String

func (a *Auth) String() string

String returns the implementation

func (*Auth) Verify

func (a *Auth) Verify(token string) (*auth.Account, error)

Verify an account token

Jump to

Keyboard shortcuts

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