Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NonceChecker ¶
NonceChecker is a func type to check if a nonce is valid
type Options ¶
type Options struct { NonceParam string TimestampParam string SignatureParam string CheckNonceFunc NonceChecker MaxLife int64 }
Options for the Signer
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer type to create signatures
func (*Signer) GenerateNonce ¶
GenerateNonce creates a new nonce based on a timestamp and a number of arguments
type SignerMiddleware ¶
type SignerMiddleware struct {
// contains filtered or unexported fields
}
func NewMidddleware ¶
func NewMidddleware(s *Signer, errorHandler func(w http.ResponseWriter, err error)) *SignerMiddleware
Click to show internal directories.
Click to hide internal directories.