token

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenAuth

type TokenAuth struct{}

func (*TokenAuth) Authenticate

func (t *TokenAuth) Authenticate(ctx context.Context, r *http.Request, p interface{}) bool

func (*TokenAuth) Name

func (t *TokenAuth) Name() string

func (*TokenAuth) OptionalParams

func (t *TokenAuth) OptionalParams() []string

func (*TokenAuth) ParseParams

func (t *TokenAuth) ParseParams(m map[string]interface{}) (interface{}, error)

func (*TokenAuth) RequiredParams

func (t *TokenAuth) RequiredParams() []string

func (*TokenAuth) StripAuth added in v0.2.0

func (t *TokenAuth) StripAuth(r *http.Request, p interface{})

StripAuth removes the token header from the request.

type TokenAuthOut

type TokenAuthOut struct{}

func (*TokenAuthOut) AddAuth

func (t *TokenAuthOut) AddAuth(ctx context.Context, r *http.Request, p interface{}) error

func (*TokenAuthOut) Name

func (t *TokenAuthOut) Name() string

func (*TokenAuthOut) OptionalParams

func (t *TokenAuthOut) OptionalParams() []string

func (*TokenAuthOut) ParseParams

func (t *TokenAuthOut) ParseParams(m map[string]interface{}) (interface{}, error)

func (*TokenAuthOut) RequiredParams

func (t *TokenAuthOut) RequiredParams() []string

Jump to

Keyboard shortcuts

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