authenvelope

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const L = "AUTH"

Variables

This section is empty.

Functions

func ParseChallenge

func ParseChallenge(b B) (t *Challenge, rem B, err E)

func ParseResponse

func ParseResponse(b B) (t *Response, rem B, err E)

Types

type B

type B = []byte

type Challenge

type Challenge struct {
	Challenge B
}

func NewChallenge

func NewChallenge() *Challenge

func NewChallengeWith

func NewChallengeWith[V S | B](challenge V) *Challenge

func (*Challenge) Label

func (en *Challenge) Label() string

func (*Challenge) MarshalJSON

func (en *Challenge) MarshalJSON(dst B) (b B, err E)

func (*Challenge) UnmarshalJSON

func (en *Challenge) UnmarshalJSON(b B) (r B, err E)

func (*Challenge) Write

func (en *Challenge) Write(w io.Writer) (err E)

type Ctx

type Ctx = context.T

type E

type E = error

type N

type N = int

type Response

type Response struct {
	Event *event.T
}

func NewResponse

func NewResponse() *Response

func NewResponseWith

func NewResponseWith(event *event.T) *Response

func (*Response) Label

func (en *Response) Label() string

func (*Response) MarshalJSON

func (en *Response) MarshalJSON(dst B) (b B, err E)

func (*Response) UnmarshalJSON

func (en *Response) UnmarshalJSON(b B) (r B, err E)

func (*Response) Write

func (en *Response) Write(w io.Writer) (err E)

type S

type S = string

Jump to

Keyboard shortcuts

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