auth

package
v0.0.0-...-aa8845d Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 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 {
	Token string `structool:"token"`

	Codecs *httpcodec.DefaultCodecs
}

Auth implements httpcodec.ParamCodec to encode and decode the `Authorization` header.

func (*Auth) Decode

func (a *Auth) Decode(in []string, out interface{}) error

Decode decodes the `Authorization` header.

func (*Auth) Encode

func (a *Auth) Encode(in interface{}) (out []string)

Encode encodes the `Authorization` header.

func (*Auth) Init

func (a *Auth) Init(ctx appx.Context) error

Jump to

Keyboard shortcuts

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