Documentation ¶
Overview ¶
Package qlightptm is a generated GoMock package.
Index ¶
- func Is(ptm interface{}) bool
- type CPItem
- type CachablePrivateTransactionData
- type CachingProxyTxManager
- func (t *CachingProxyTxManager) Cache(privateTxData *CachablePrivateTransactionData) error
- func (t *CachingProxyTxManager) CheckAndAddEmptyToCache(hash common.EncryptedPayloadHash)
- func (t *CachingProxyTxManager) DecryptPayload(payload common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error)
- func (t *CachingProxyTxManager) EncryptPayload(data []byte, from string, to []string, extra *engine.ExtraMetadata) ([]byte, error)
- func (t *CachingProxyTxManager) GetMandatory(txHash common.EncryptedPayloadHash) ([]string, error)
- func (t *CachingProxyTxManager) GetParticipants(txHash common.EncryptedPayloadHash) ([]string, error)
- func (t *CachingProxyTxManager) Groups() ([]engine.PrivacyGroup, error)
- func (t *CachingProxyTxManager) HasFeature(f engine.PrivateTransactionManagerFeature) bool
- func (t *CachingProxyTxManager) IsSender(data common.EncryptedPayloadHash) (bool, error)
- func (t *CachingProxyTxManager) Name() string
- func (t *CachingProxyTxManager) Receive(hash common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error)
- func (t *CachingProxyTxManager) ReceiveRaw(hash common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error)
- func (t *CachingProxyTxManager) Send(data []byte, from string, to []string, extra *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error)
- func (t *CachingProxyTxManager) SendSignedTx(data common.EncryptedPayloadHash, to []string, extra *engine.ExtraMetadata) (string, []string, []byte, error)
- func (t *CachingProxyTxManager) SetRPCClient(client *rpc.Client)
- func (t *CachingProxyTxManager) SetRPCClientCaller(client RPCClientCaller)
- func (t *CachingProxyTxManager) StoreRaw(data []byte, from string) (common.EncryptedPayloadHash, error)
- type MockRPCClientCaller
- type MockRPCClientCallerMockRecorder
- type RPCClientCaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachablePrivateTransactionData ¶
type CachablePrivateTransactionData struct { Hash common.EncryptedPayloadHash QuorumPrivateTxData engine.QuorumPayloadExtra }
type CachingProxyTxManager ¶
type CachingProxyTxManager struct {
// contains filtered or unexported fields
}
func New ¶
func New() *CachingProxyTxManager
func (*CachingProxyTxManager) Cache ¶
func (t *CachingProxyTxManager) Cache(privateTxData *CachablePrivateTransactionData) error
func (*CachingProxyTxManager) CheckAndAddEmptyToCache ¶
func (t *CachingProxyTxManager) CheckAndAddEmptyToCache(hash common.EncryptedPayloadHash)
func (*CachingProxyTxManager) DecryptPayload ¶
func (t *CachingProxyTxManager) DecryptPayload(payload common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error)
retrieve raw will not return information about medata
func (*CachingProxyTxManager) EncryptPayload ¶
func (t *CachingProxyTxManager) EncryptPayload(data []byte, from string, to []string, extra *engine.ExtraMetadata) ([]byte, error)
func (*CachingProxyTxManager) GetMandatory ¶
func (t *CachingProxyTxManager) GetMandatory(txHash common.EncryptedPayloadHash) ([]string, error)
func (*CachingProxyTxManager) GetParticipants ¶
func (t *CachingProxyTxManager) GetParticipants(txHash common.EncryptedPayloadHash) ([]string, error)
func (*CachingProxyTxManager) Groups ¶
func (t *CachingProxyTxManager) Groups() ([]engine.PrivacyGroup, error)
func (*CachingProxyTxManager) HasFeature ¶
func (t *CachingProxyTxManager) HasFeature(f engine.PrivateTransactionManagerFeature) bool
func (*CachingProxyTxManager) IsSender ¶
func (t *CachingProxyTxManager) IsSender(data common.EncryptedPayloadHash) (bool, error)
func (*CachingProxyTxManager) Name ¶
func (t *CachingProxyTxManager) Name() string
func (*CachingProxyTxManager) Receive ¶
func (t *CachingProxyTxManager) Receive(hash common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error)
func (*CachingProxyTxManager) ReceiveRaw ¶
func (t *CachingProxyTxManager) ReceiveRaw(hash common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error)
retrieve raw will not return information about medata. Related to SendSignedTx
func (*CachingProxyTxManager) Send ¶
func (t *CachingProxyTxManager) Send(data []byte, from string, to []string, extra *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error)
func (*CachingProxyTxManager) SendSignedTx ¶
func (t *CachingProxyTxManager) SendSignedTx(data common.EncryptedPayloadHash, to []string, extra *engine.ExtraMetadata) (string, []string, []byte, error)
func (*CachingProxyTxManager) SetRPCClient ¶
func (t *CachingProxyTxManager) SetRPCClient(client *rpc.Client)
func (*CachingProxyTxManager) SetRPCClientCaller ¶
func (t *CachingProxyTxManager) SetRPCClientCaller(client RPCClientCaller)
func (*CachingProxyTxManager) StoreRaw ¶
func (t *CachingProxyTxManager) StoreRaw(data []byte, from string) (common.EncryptedPayloadHash, error)
type MockRPCClientCaller ¶
type MockRPCClientCaller struct {
// contains filtered or unexported fields
}
MockRPCClientCaller is a mock of RPCClientCaller interface.
func NewMockRPCClientCaller ¶
func NewMockRPCClientCaller(ctrl *gomock.Controller) *MockRPCClientCaller
NewMockRPCClientCaller creates a new mock instance.
func (*MockRPCClientCaller) Call ¶
func (m *MockRPCClientCaller) Call(result interface{}, method string, args ...interface{}) error
Call mocks base method.
func (*MockRPCClientCaller) EXPECT ¶
func (m *MockRPCClientCaller) EXPECT() *MockRPCClientCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRPCClientCallerMockRecorder ¶
type MockRPCClientCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockRPCClientCallerMockRecorder is the mock recorder for MockRPCClientCaller.
func (*MockRPCClientCallerMockRecorder) Call ¶
func (mr *MockRPCClientCallerMockRecorder) Call(result, method interface{}, args ...interface{}) *gomock.Call
Call indicates an expected call of Call.
type RPCClientCaller ¶
Click to show internal directories.
Click to hide internal directories.