mock

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AuthorizeFunc   func(string) bool
	GenerateKeyFunc func(string) (string, error)
	EnforceFunc     func(string, string, string) (bool, error)
}

func (*Auth) Authorize

func (ma *Auth) Authorize(u string) bool

func (*Auth) Enforce

func (ma *Auth) Enforce(a1 string, a2 string, a3 string) (bool, error)

func (*Auth) GenerateKey

func (ma *Auth) GenerateKey(k string, _ int) (string, error)

func (*Auth) RefreshKey

func (ma *Auth) RefreshKey(k string, _ int) (string, error)

func (*Auth) SecretKey added in v0.9.3

func (ma *Auth) SecretKey(a1 string) (string, error)

Jump to

Keyboard shortcuts

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