primary

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Primary

type Primary struct {
	MaxRange      int                // Maximum number of leaves per get-leaves request
	DbClient      db.Client          // provides access to the backend, usually Trillian
	Stateman      state.StateManager // coordinates access to (co)signed tree heads
	TokenVerifier *token.DnsVerifier // checks if domain name knows a public key
	RateLimiter   rateLimit.Limiter
}

Primary is an instance of the log's primary node

func (Primary) AddLeaf added in v0.15.0

func (p Primary) AddLeaf(ctx context.Context, req requests.Leaf, t *token.SubmitHeader) (bool, error)

func (Primary) GetConsistencyProof added in v0.15.0

func (p Primary) GetConsistencyProof(ctx context.Context, req requests.ConsistencyProof) (types.ConsistencyProof, error)

func (Primary) GetInclusionProof added in v0.15.0

func (p Primary) GetInclusionProof(ctx context.Context, req requests.InclusionProof) (types.InclusionProof, error)

func (Primary) GetLeaves added in v0.15.0

func (p Primary) GetLeaves(ctx context.Context, req requests.Leaves) ([]types.Leaf, error)

func (Primary) GetLeavesInternal added in v0.15.0

func (p Primary) GetLeavesInternal(ctx context.Context, req requests.Leaves) ([]types.Leaf, error)

func (Primary) GetTreeHead added in v0.15.0

func (p Primary) GetTreeHead(_ context.Context) (types.CosignedTreeHead, error)

Jump to

Keyboard shortcuts

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