mock

package
v2.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: BSD-3-Clause Imports: 1 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, _ time.Duration) (string, error)

func (*Auth) RefreshKey

func (ma *Auth) RefreshKey(k string, _ time.Duration) (string, error)

Jump to

Keyboard shortcuts

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