Documentation
¶
Overview ¶
Package mockclient provides a mockable version of the Trillian log client API.
Index ¶
- type MockTrillianLogClient
- func (_m *MockTrillianLogClient) EXPECT() *_MockTrillianLogClientRecorder
- func (_m *MockTrillianLogClient) GetConsistencyProof(_param0 context.Context, _param1 *trillian.GetConsistencyProofRequest, ...) (*trillian.GetConsistencyProofResponse, error)
- func (_m *MockTrillianLogClient) GetEntryAndProof(_param0 context.Context, _param1 *trillian.GetEntryAndProofRequest, ...) (*trillian.GetEntryAndProofResponse, error)
- func (_m *MockTrillianLogClient) GetInclusionProof(_param0 context.Context, _param1 *trillian.GetInclusionProofRequest, ...) (*trillian.GetInclusionProofResponse, error)
- func (_m *MockTrillianLogClient) GetInclusionProofByHash(_param0 context.Context, _param1 *trillian.GetInclusionProofByHashRequest, ...) (*trillian.GetInclusionProofByHashResponse, error)
- func (_m *MockTrillianLogClient) GetLatestSignedLogRoot(_param0 context.Context, _param1 *trillian.GetLatestSignedLogRootRequest, ...) (*trillian.GetLatestSignedLogRootResponse, error)
- func (_m *MockTrillianLogClient) GetLeavesByHash(_param0 context.Context, _param1 *trillian.GetLeavesByHashRequest, ...) (*trillian.GetLeavesByHashResponse, error)
- func (_m *MockTrillianLogClient) GetLeavesByIndex(_param0 context.Context, _param1 *trillian.GetLeavesByIndexRequest, ...) (*trillian.GetLeavesByIndexResponse, error)
- func (_m *MockTrillianLogClient) GetSequencedLeafCount(_param0 context.Context, _param1 *trillian.GetSequencedLeafCountRequest, ...) (*trillian.GetSequencedLeafCountResponse, error)
- func (_m *MockTrillianLogClient) QueueLeaf(_param0 context.Context, _param1 *trillian.QueueLeafRequest, ...) (*trillian.QueueLeafResponse, error)
- func (_m *MockTrillianLogClient) QueueLeaves(_param0 context.Context, _param1 *trillian.QueueLeavesRequest, ...) (*trillian.QueueLeavesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTrillianLogClient ¶
type MockTrillianLogClient struct {
// contains filtered or unexported fields
}
Mock of TrillianLogClient interface
func NewMockTrillianLogClient ¶
func NewMockTrillianLogClient(ctrl *gomock.Controller) *MockTrillianLogClient
func (*MockTrillianLogClient) EXPECT ¶
func (_m *MockTrillianLogClient) EXPECT() *_MockTrillianLogClientRecorder
func (*MockTrillianLogClient) GetConsistencyProof ¶
func (_m *MockTrillianLogClient) GetConsistencyProof(_param0 context.Context, _param1 *trillian.GetConsistencyProofRequest, _param2 ...grpc.CallOption) (*trillian.GetConsistencyProofResponse, error)
func (*MockTrillianLogClient) GetEntryAndProof ¶
func (_m *MockTrillianLogClient) GetEntryAndProof(_param0 context.Context, _param1 *trillian.GetEntryAndProofRequest, _param2 ...grpc.CallOption) (*trillian.GetEntryAndProofResponse, error)
func (*MockTrillianLogClient) GetInclusionProof ¶
func (_m *MockTrillianLogClient) GetInclusionProof(_param0 context.Context, _param1 *trillian.GetInclusionProofRequest, _param2 ...grpc.CallOption) (*trillian.GetInclusionProofResponse, error)
func (*MockTrillianLogClient) GetInclusionProofByHash ¶
func (_m *MockTrillianLogClient) GetInclusionProofByHash(_param0 context.Context, _param1 *trillian.GetInclusionProofByHashRequest, _param2 ...grpc.CallOption) (*trillian.GetInclusionProofByHashResponse, error)
func (*MockTrillianLogClient) GetLatestSignedLogRoot ¶
func (_m *MockTrillianLogClient) GetLatestSignedLogRoot(_param0 context.Context, _param1 *trillian.GetLatestSignedLogRootRequest, _param2 ...grpc.CallOption) (*trillian.GetLatestSignedLogRootResponse, error)
func (*MockTrillianLogClient) GetLeavesByHash ¶
func (_m *MockTrillianLogClient) GetLeavesByHash(_param0 context.Context, _param1 *trillian.GetLeavesByHashRequest, _param2 ...grpc.CallOption) (*trillian.GetLeavesByHashResponse, error)
func (*MockTrillianLogClient) GetLeavesByIndex ¶
func (_m *MockTrillianLogClient) GetLeavesByIndex(_param0 context.Context, _param1 *trillian.GetLeavesByIndexRequest, _param2 ...grpc.CallOption) (*trillian.GetLeavesByIndexResponse, error)
func (*MockTrillianLogClient) GetSequencedLeafCount ¶
func (_m *MockTrillianLogClient) GetSequencedLeafCount(_param0 context.Context, _param1 *trillian.GetSequencedLeafCountRequest, _param2 ...grpc.CallOption) (*trillian.GetSequencedLeafCountResponse, error)
func (*MockTrillianLogClient) QueueLeaf ¶
func (_m *MockTrillianLogClient) QueueLeaf(_param0 context.Context, _param1 *trillian.QueueLeafRequest, _param2 ...grpc.CallOption) (*trillian.QueueLeafResponse, error)
func (*MockTrillianLogClient) QueueLeaves ¶
func (_m *MockTrillianLogClient) QueueLeaves(_param0 context.Context, _param1 *trillian.QueueLeavesRequest, _param2 ...grpc.CallOption) (*trillian.QueueLeavesResponse, error)
Click to show internal directories.
Click to hide internal directories.