Documentation ¶
Index ¶
- type Client
- type TrillianClient
- func (c *TrillianClient) AddLeaf(ctx context.Context, req *types.LeafRequest) error
- func (c *TrillianClient) GetConsistencyProof(ctx context.Context, req *types.ConsistencyProofRequest) (*types.ConsistencyProof, error)
- func (c *TrillianClient) GetInclusionProof(ctx context.Context, req *types.InclusionProofRequest) (*types.InclusionProof, error)
- func (c *TrillianClient) GetLeaves(ctx context.Context, req *types.LeavesRequest) (*types.LeafList, error)
- func (c *TrillianClient) GetTreeHead(ctx context.Context) (*types.TreeHead, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { AddLeaf(context.Context, *types.LeafRequest) error GetConsistencyProof(context.Context, *types.ConsistencyProofRequest) (*types.ConsistencyProof, error) GetTreeHead(context.Context) (*types.TreeHead, error) GetInclusionProof(context.Context, *types.InclusionProofRequest) (*types.InclusionProof, error) GetLeaves(context.Context, *types.LeavesRequest) (*types.LeafList, error) }
type TrillianClient ¶
type TrillianClient struct { // TreeID is a Merkle tree identifier that Trillian uses TreeID int64 // GRPC is a Trillian gRPC client GRPC trillian.TrillianLogClient }
TrillianClient is a wrapper around the Trillian gRPC client.
func (*TrillianClient) AddLeaf ¶
func (c *TrillianClient) AddLeaf(ctx context.Context, req *types.LeafRequest) error
func (*TrillianClient) GetConsistencyProof ¶
func (c *TrillianClient) GetConsistencyProof(ctx context.Context, req *types.ConsistencyProofRequest) (*types.ConsistencyProof, error)
func (*TrillianClient) GetInclusionProof ¶
func (c *TrillianClient) GetInclusionProof(ctx context.Context, req *types.InclusionProofRequest) (*types.InclusionProof, error)
func (*TrillianClient) GetLeaves ¶
func (c *TrillianClient) GetLeaves(ctx context.Context, req *types.LeavesRequest) (*types.LeafList, error)
Click to show internal directories.
Click to hide internal directories.