Documentation ¶
Overview ¶
Package signhandler implements the HTTP interface to signing and verifying Perkeep JSON blobs.
Index ¶
- type Handler
- func (h *Handler) Discovery(base string) *camtypes.SignDiscovery
- func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- func (h *Handler) Sign(ctx context.Context, bb *schema.Builder) (string, error)
- func (h *Handler) Signer() *schema.Signer
- func (h *Handler) UploadPublicKey(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements JSON signing, verification, and discovery.
See https://perkeep.org/doc/protocol/jsonsign
func (*Handler) Discovery ¶
func (h *Handler) Discovery(base string) *camtypes.SignDiscovery
Discovery returns the Discovery response for the signing handler.
Click to show internal directories.
Click to hide internal directories.