mock

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 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)
}

func (*Auth) Authorize

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

func (*Auth) Enforce

func (*Auth) Enforce(string, string, 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)

Jump to

Keyboard shortcuts

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