Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer signs HTTP requests.
func NewSigner ¶
func NewSigner(signingKey ed25519.PrivateKey) *Signer
NewSigner creates a Signer that signs HTTP requests using the specified signing key, in the same way that Dispatch would sign requests.
func (*Signer) Client ¶
func (s *Signer) Client(client connect.HTTPClient) *SigningClient
Client wraps an HTTP client to automatically sign requests.
type SigningClient ¶
type SigningClient struct {
// contains filtered or unexported fields
}
SigningClient is an HTTP client that automatically signs requests.
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier verifies that requests were signed by Dispatch.
func NewVerifier ¶
NewVerifier creates a Verifier that verifies that requests were signed by Dispatch using the private key associated with this public verification key.
func (*Verifier) Middleware ¶
Middleware wraps an HTTP handler in order to validate request signatures.
Click to show internal directories.
Click to hide internal directories.