requests

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsistencyProofRequestFromHTTP

func ConsistencyProofRequestFromHTTP(r *http.Request) (*sigsumreq.ConsistencyProof, error)

func InclusionProofRequestFromHTTP

func InclusionProofRequestFromHTTP(r *http.Request) (*sigsumreq.InclusionProof, error)

func LeafRequestFromHTTP

func LeafRequestFromHTTP(ctx context.Context, r *http.Request, v TokenVerifier) (*sigsumreq.Leaf, *string, error)

The string return value, if non-nil, is the verified submitter domain.

func LeavesRequestFromHTTP

func LeavesRequestFromHTTP(r *http.Request, maxIndex uint64, maxRange int, strictEnd bool) (sigsumreq.Leaves, error)

Types

type TokenVerifier added in v0.13.0

type TokenVerifier interface {
	Verify(ctx context.Context, submitToken *token.SubmitHeader) error
}

Implemented by token.DnsVerifier; interface only to enable mocking in unit tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL