authenvelope

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const L = "AUTH"

Variables

This section is empty.

Functions

This section is empty.

Types

type Challenge

type Challenge struct {
	Challenge []byte
}

func NewChallenge

func NewChallenge() *Challenge

func NewChallengeWith

func NewChallengeWith[V string | []byte](challenge V) *Challenge

func ParseChallenge

func ParseChallenge(b []byte) (t *Challenge, rem []byte, err error)

func (*Challenge) Label

func (en *Challenge) Label() string

func (*Challenge) Marshal

func (en *Challenge) Marshal(dst []byte) (b []byte)

func (*Challenge) Unmarshal

func (en *Challenge) Unmarshal(b []byte) (r []byte, err error)

func (*Challenge) Write

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

type Response

type Response struct {
	Event *event.T
}

func NewResponse

func NewResponse() *Response

func NewResponseWith

func NewResponseWith(event *event.T) *Response

func ParseResponse

func ParseResponse(b []byte) (t *Response, rem []byte, err error)

func (*Response) Label

func (en *Response) Label() string

func (*Response) Marshal

func (en *Response) Marshal(dst []byte) (b []byte)

func (*Response) Unmarshal

func (en *Response) Unmarshal(b []byte) (r []byte, err error)

func (*Response) Write

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

Jump to

Keyboard shortcuts

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