Documentation ¶
Index ¶
- type TrillianConnection
- func (c *TrillianConnection) Connect() error
- func (c *TrillianConnection) CreateLog(ctx context.Context, treeID int64, content []byte) ([]byte, error)
- func (c *TrillianConnection) CreateTree(ctx context.Context, name, description string) (int64, error)
- func (c *TrillianConnection) GetInclusionProofByHash(ctx context.Context, treeID int64, identityHash string) ([]*trillian.Proof, error)
- func (c *TrillianConnection) GetLeafByIndex(ctx context.Context, treeID int64, leafIndex int64) (*trillian.LogLeaf, error)
- func (c *TrillianConnection) GetNewClient() (*grpc.ClientConn, error)
- func (c *TrillianConnection) InitTree(ctx context.Context, treeID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrillianConnection ¶
type TrillianConnection struct { AddrGRPC string AddrHTTP string Database string Conn *grpc.ClientConn Logger mlog.Logger }
func (*TrillianConnection) Connect ¶
func (c *TrillianConnection) Connect() error
Connect keeps a singleton connection with Trillian gRPC.
func (*TrillianConnection) CreateTree ¶
func (c *TrillianConnection) CreateTree(ctx context.Context, name, description string) (int64, error)
CreateTree creates a Trillian tree to store log entries
func (*TrillianConnection) GetInclusionProofByHash ¶
func (*TrillianConnection) GetLeafByIndex ¶
func (*TrillianConnection) GetNewClient ¶
func (c *TrillianConnection) GetNewClient() (*grpc.ClientConn, error)
GetNewClient returns a connection to Trillian gRPC, reconnect it if necessary.
Click to show internal directories.
Click to hide internal directories.