mock

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: BSD-3-Clause Imports: 0 Imported by: 1

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