requests

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 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 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 Cosignature

type Cosignature struct {
	KeyHash   crypto.Hash
	Signature crypto.Signature
}

TODO: Replace with type alias (golang 1.9 feature)

func (*Cosignature) FromASCII

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

func (*Cosignature) ToASCII

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

type InclusionProof

type InclusionProof struct {
	TreeSize 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

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