requests

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTreeHead added in v0.2.0

type AddTreeHead struct {
	KeyHash  crypto.Hash
	TreeHead types.SignedTreeHead
	OldSize  uint64
	Proof    types.ConsistencyProof
}

func (*AddTreeHead) FromASCII added in v0.2.0

func (req *AddTreeHead) FromASCII(r io.Reader) error

func (*AddTreeHead) ToASCII added in v0.2.0

func (req *AddTreeHead) ToASCII(w io.Writer) error

type ConsistencyProof

type ConsistencyProof struct {
	OldSize uint64
	NewSize uint64
}

func (*ConsistencyProof) FromURL

func (req *ConsistencyProof) FromURL(url string) (err error)

FromURL parses request parameters from a URL that is not slash-terminated

func (*ConsistencyProof) ToURL

func (req *ConsistencyProof) ToURL(url string) string

ToURL encodes request parameters at the end of a slash-terminated URL

type GetTreeSize added in v0.2.0

type GetTreeSize struct {
	KeyHash crypto.Hash
}

func (*GetTreeSize) FromURL added in v0.5.0

func (req *GetTreeSize) FromURL(url string) error

func (*GetTreeSize) FromURLArgs added in v0.5.0

func (req *GetTreeSize) FromURLArgs(args string) error

func (*GetTreeSize) ToURL added in v0.2.0

func (req *GetTreeSize) ToURL(url string) string

type InclusionProof

type InclusionProof struct {
	Size     uint64
	LeafHash crypto.Hash
}

func (*InclusionProof) FromURL

func (req *InclusionProof) FromURL(url string) (err error)

FromURL parses request parameters from a URL that is not slash-terminated

func (*InclusionProof) ToURL

func (req *InclusionProof) ToURL(url string) string

ToURL encodes request parameters at the end of a slash-terminated URL

type Leaf

type Leaf struct {
	Message   crypto.Hash
	Signature crypto.Signature
	PublicKey crypto.PublicKey
}

func (*Leaf) FromASCII

func (req *Leaf) FromASCII(r io.Reader) error

func (*Leaf) ToASCII

func (req *Leaf) ToASCII(w io.Writer) error

func (*Leaf) Verify added in v0.1.11

func (req *Leaf) Verify() (types.Leaf, error)

Verifies the request signature, and creates a corresponding leaf on success.

type Leaves

type Leaves struct {
	StartIndex uint64
	EndIndex   uint64
}

func (*Leaves) FromURL

func (req *Leaves) FromURL(url string) (err error)

FromURL parses request parameters from a URL that is not slash-terminated

func (*Leaves) ToURL

func (req *Leaves) ToURL(url string) string

ToURL encodes request parameters at the end of a slash-terminated URL

Jump to

Keyboard shortcuts

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