Documentation ¶
Index ¶
Constants ¶
View Source
const L = "AUTH"
Variables ¶
This section is empty.
Functions ¶
func ParseChallenge ¶ added in v0.1.4
func ParseChallenge(b B) (t *Challenge, rem B, err E)
func ParseResponse ¶ added in v0.1.4
func ParseResponse(b B) (t *Response, rem B, err E)
Types ¶
type Challenge ¶
type Challenge struct {
Challenge B
}
func NewChallenge ¶
func NewChallenge() *Challenge
func NewChallengeWith ¶
func NewChallengeWith[V S | B](challenge V) *Challenge
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)
type Response ¶
func NewResponse ¶
func NewResponse() *Response
func NewResponseWith ¶ added in v0.1.3
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)
Click to show internal directories.
Click to hide internal directories.