Documentation
¶
Index ¶
- type Signaturer
- func (p *Signaturer) Audience(aud ...string) *Signaturer
- func (p *Signaturer) Compose(rt http.RoundTripper) http.RoundTripper
- func (p *Signaturer) Expiration(exp time.Time) *Signaturer
- func (p *Signaturer) IssuedAt(iat time.Time) *Signaturer
- func (p *Signaturer) NotBefore(nbf time.Time) *Signaturer
- func (p *Signaturer) Set(k string, v any) *Signaturer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signaturer ¶
type Signaturer struct {
// contains filtered or unexported fields
}
func HS256 ¶
func HS256(key string) *Signaturer
HS256 creates a signing methods by using the HMAC-SHA256.
func HS384 ¶
func HS384(key string) *Signaturer
HS384 creates a signing methods by using the HMAC-SHA384.
func HS512 ¶
func HS512(key string) *Signaturer
HS512 creates a signing methods by using the HMAC-SHA512.
func (*Signaturer) Audience ¶
func (p *Signaturer) Audience(aud ...string) *Signaturer
func (*Signaturer) Compose ¶
func (p *Signaturer) Compose(rt http.RoundTripper) http.RoundTripper
func (*Signaturer) Expiration ¶
func (p *Signaturer) Expiration(exp time.Time) *Signaturer
func (*Signaturer) IssuedAt ¶
func (p *Signaturer) IssuedAt(iat time.Time) *Signaturer
func (*Signaturer) NotBefore ¶
func (p *Signaturer) NotBefore(nbf time.Time) *Signaturer
func (*Signaturer) Set ¶
func (p *Signaturer) Set(k string, v any) *Signaturer
Click to show internal directories.
Click to hide internal directories.