Documentation
¶
Index ¶
- type Primary
- func (p Primary) AddLeaf(ctx context.Context, req requests.Leaf, t *token.SubmitHeader) (bool, error)
- func (p Primary) GetConsistencyProof(ctx context.Context, req requests.ConsistencyProof) (types.ConsistencyProof, error)
- func (p Primary) GetInclusionProof(ctx context.Context, req requests.InclusionProof) (types.InclusionProof, error)
- func (p Primary) GetLeaves(ctx context.Context, req requests.Leaves) ([]types.Leaf, error)
- func (p Primary) GetLeavesInternal(ctx context.Context, req requests.Leaves) ([]types.Leaf, error)
- func (p Primary) GetTreeHead(_ context.Context) (types.CosignedTreeHead, error)
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 (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 (Primary) GetLeavesInternal ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.