Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type BatchContext
- func (fake *BatchContext) Anchor() batch.AnchorWriter
- func (fake *BatchContext) AnchorCallCount() int
- func (fake *BatchContext) AnchorReturns(result1 batch.AnchorWriter)
- func (fake *BatchContext) AnchorReturnsOnCall(i int, result1 batch.AnchorWriter)
- func (fake *BatchContext) Invocations() map[string][][]interface{}
- func (fake *BatchContext) OperationQueue() cutter.OperationQueue
- func (fake *BatchContext) OperationQueueCallCount() int
- func (fake *BatchContext) OperationQueueReturns(result1 cutter.OperationQueue)
- func (fake *BatchContext) OperationQueueReturnsOnCall(i int, result1 cutter.OperationQueue)
- func (fake *BatchContext) Protocol() protocol.Client
- func (fake *BatchContext) ProtocolCallCount() int
- func (fake *BatchContext) ProtocolReturns(result1 protocol.Client)
- func (fake *BatchContext) ProtocolReturnsOnCall(i int, result1 protocol.Client)
- type BatchWriter
- func (fake *BatchWriter) Add(arg1 *operation.QueuedOperation, arg2 uint64) error
- func (fake *BatchWriter) AddArgsForCall(i int) (*operation.QueuedOperation, uint64)
- func (fake *BatchWriter) AddCallCount() int
- func (fake *BatchWriter) AddCalls(stub func(*operation.QueuedOperation, uint64) error)
- func (fake *BatchWriter) AddReturns(result1 error)
- func (fake *BatchWriter) AddReturnsOnCall(i int, result1 error)
- func (fake *BatchWriter) Invocations() map[string][][]interface{}
- func (fake *BatchWriter) Start() error
- func (fake *BatchWriter) StartCallCount() int
- func (fake *BatchWriter) StartCalls(stub func() error)
- func (fake *BatchWriter) StartReturns(result1 error)
- func (fake *BatchWriter) StartReturnsOnCall(i int, result1 error)
- func (fake *BatchWriter) Stop()
- func (fake *BatchWriter) StopCallCount() int
- func (fake *BatchWriter) StopCalls(stub func())
- type ConfigService
- func (fake *ConfigService) AddUpdateHandler(handler config.UpdateHandler)
- func (fake *ConfigService) AddUpdateHandlerArgsForCall(i int) config.UpdateHandler
- func (fake *ConfigService) AddUpdateHandlerCallCount() int
- func (fake *ConfigService) Get(key *config.Key) (*config.Value, error)
- func (fake *ConfigService) GetArgsForCall(i int) *config.Key
- func (fake *ConfigService) GetCallCount() int
- func (fake *ConfigService) GetReturns(result1 *config.Value, result2 error)
- func (fake *ConfigService) GetReturnsOnCall(i int, result1 *config.Value, result2 error)
- func (fake *ConfigService) Invocations() map[string][][]interface{}
- func (fake *ConfigService) Query(criteria *config.Criteria) ([]*config.KeyValue, error)
- func (fake *ConfigService) QueryArgsForCall(i int) *config.Criteria
- func (fake *ConfigService) QueryCallCount() int
- func (fake *ConfigService) QueryReturns(result1 []*config.KeyValue, result2 error)
- func (fake *ConfigService) QueryReturnsOnCall(i int, result1 []*config.KeyValue, result2 error)
- type ConfigServiceProvider
- func (fake *ConfigServiceProvider) ForChannel(channelID string) ledgerconfig.Service
- func (fake *ConfigServiceProvider) ForChannelArgsForCall(i int) string
- func (fake *ConfigServiceProvider) ForChannelCallCount() int
- func (fake *ConfigServiceProvider) ForChannelReturns(result1 ledgerconfig.Service)
- func (fake *ConfigServiceProvider) ForChannelReturnsOnCall(i int, result1 ledgerconfig.Service)
- func (fake *ConfigServiceProvider) Invocations() map[string][][]interface{}
- type DiscoveryProvider
- func (fake *DiscoveryProvider) Invocations() map[string][][]interface{}
- func (fake *DiscoveryProvider) ServicesForChannel(channelID string) []discovery.Service
- func (fake *DiscoveryProvider) ServicesForChannelArgsForCall(i int) string
- func (fake *DiscoveryProvider) ServicesForChannelCallCount() int
- func (fake *DiscoveryProvider) ServicesForChannelReturns(result1 []discovery.Service)
- func (fake *DiscoveryProvider) ServicesForChannelReturnsOnCall(i int, result1 []discovery.Service)
- func (fake *DiscoveryProvider) UpdateLocalServicesForChannel(channelID string, services []discovery.Service)
- func (fake *DiscoveryProvider) UpdateLocalServicesForChannelArgsForCall(i int) (string, []discovery.Service)
- func (fake *DiscoveryProvider) UpdateLocalServicesForChannelCallCount() int
- type HTTPHandler
- func (fake *HTTPHandler) Handler() common.HTTPRequestHandler
- func (fake *HTTPHandler) HandlerCallCount() int
- func (fake *HTTPHandler) HandlerReturns(result1 common.HTTPRequestHandler)
- func (fake *HTTPHandler) HandlerReturnsOnCall(i int, result1 common.HTTPRequestHandler)
- func (fake *HTTPHandler) Invocations() map[string][][]interface{}
- func (fake *HTTPHandler) Method() string
- func (fake *HTTPHandler) MethodCallCount() int
- func (fake *HTTPHandler) MethodReturns(result1 string)
- func (fake *HTTPHandler) MethodReturnsOnCall(i int, result1 string)
- func (fake *HTTPHandler) Path() string
- func (fake *HTTPHandler) PathCallCount() int
- func (fake *HTTPHandler) PathReturns(result1 string)
- func (fake *HTTPHandler) PathReturnsOnCall(i int, result1 string)
- type KVIterator
- type PeerConfig
- func (fake *PeerConfig) Invocations() map[string][][]interface{}
- func (fake *PeerConfig) MSPID() string
- func (fake *PeerConfig) MSPIDCallCount() int
- func (fake *PeerConfig) MSPIDReturns(result1 string)
- func (fake *PeerConfig) MSPIDReturnsOnCall(i int, result1 string)
- func (fake *PeerConfig) PeerAddress() string
- func (fake *PeerConfig) PeerAddressCallCount() int
- func (fake *PeerConfig) PeerAddressReturns(result1 string)
- func (fake *PeerConfig) PeerAddressReturnsOnCall(i int, result1 string)
- func (fake *PeerConfig) PeerID() string
- func (fake *PeerConfig) PeerIDCallCount() int
- func (fake *PeerConfig) PeerIDReturns(result1 string)
- func (fake *PeerConfig) PeerIDReturnsOnCall(i int, result1 string)
- type ProtocolProvider
- func (fake *ProtocolProvider) Invocations() map[string][][]interface{}
- func (fake *ProtocolProvider) Protocol() protocol.Client
- func (fake *ProtocolProvider) ProtocolCallCount() int
- func (fake *ProtocolProvider) ProtocolReturns(result1 protocol.Client)
- func (fake *ProtocolProvider) ProtocolReturnsOnCall(i int, result1 protocol.Client)
- type ProtocolVersionFactory
- func (fake *ProtocolVersionFactory) CreateProtocolVersion(arg1 string, arg2 protocol.Protocol, arg3 cas.Client, ...) (protocol.Version, error)
- func (fake *ProtocolVersionFactory) CreateProtocolVersionArgsForCall(i int) (string, protocol.Protocol, cas.Client, common.OperationStore, string, ...)
- func (fake *ProtocolVersionFactory) CreateProtocolVersionCallCount() int
- func (fake *ProtocolVersionFactory) CreateProtocolVersionCalls(...)
- func (fake *ProtocolVersionFactory) CreateProtocolVersionReturns(result1 protocol.Version, result2 error)
- func (fake *ProtocolVersionFactory) CreateProtocolVersionReturnsOnCall(i int, result1 protocol.Version, result2 error)
- func (fake *ProtocolVersionFactory) Invocations() map[string][][]interface{}
- type RESTServerController
- type RestConfig
- func (fake *RestConfig) Invocations() map[string][][]interface{}
- func (fake *RestConfig) SidetreeAPIToken(name string) string
- func (fake *RestConfig) SidetreeAPITokenArgsForCall(i int) string
- func (fake *RestConfig) SidetreeAPITokenCallCount() int
- func (fake *RestConfig) SidetreeAPITokenReturns(result1 string)
- func (fake *RestConfig) SidetreeAPITokenReturnsOnCall(i int, result1 string)
- func (fake *RestConfig) SidetreeListenPort() int
- func (fake *RestConfig) SidetreeListenPortCallCount() int
- func (fake *RestConfig) SidetreeListenPortReturns(result1 int)
- func (fake *RestConfig) SidetreeListenPortReturnsOnCall(i int, result1 int)
- func (fake *RestConfig) SidetreeListenURL() (string, error)
- func (fake *RestConfig) SidetreeListenURLCallCount() int
- func (fake *RestConfig) SidetreeListenURLReturns(result1 string, result2 error)
- func (fake *RestConfig) SidetreeListenURLReturnsOnCall(i int, result1 string, result2 error)
- func (fake *RestConfig) SidetreeTLSCertificate() string
- func (fake *RestConfig) SidetreeTLSCertificateCallCount() int
- func (fake *RestConfig) SidetreeTLSCertificateReturns(result1 string)
- func (fake *RestConfig) SidetreeTLSCertificateReturnsOnCall(i int, result1 string)
- func (fake *RestConfig) SidetreeTLSKey() string
- func (fake *RestConfig) SidetreeTLSKeyCallCount() int
- func (fake *RestConfig) SidetreeTLSKeyReturns(result1 string)
- func (fake *RestConfig) SidetreeTLSKeyReturnsOnCall(i int, result1 string)
- type SidetreeConfigProvider
- func (fake *SidetreeConfigProvider) ForChannel(channelID string) config.SidetreeService
- func (fake *SidetreeConfigProvider) ForChannelArgsForCall(i int) string
- func (fake *SidetreeConfigProvider) ForChannelCallCount() int
- func (fake *SidetreeConfigProvider) ForChannelReturns(result1 config.SidetreeService)
- func (fake *SidetreeConfigProvider) ForChannelReturnsOnCall(i int, result1 config.SidetreeService)
- func (fake *SidetreeConfigProvider) Invocations() map[string][][]interface{}
- type StateDB
- func (m *StateDB) BytesKeySupported() bool
- func (m *StateDB) ExecuteQuery(namespace, query string) (statedb.ResultsIterator, error)
- func (m *StateDB) ExecuteQueryWithPagination(namespace, query, bookmark string, pageSize int32) (statedb.QueryResultsIterator, error)
- func (m *StateDB) GetState(namespace string, key string) ([]byte, error)
- func (m *StateDB) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)
- func (m *StateDB) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (statedb.ResultsIterator, error)
- func (m *StateDB) GetStateRangeScanIteratorWithPagination(namespace string, startKey string, endKey string, pageSize int32) (statedb.QueryResultsIterator, error)
- func (m *StateDB) UpdateCache(uint64, []byte) error
- func (m *StateDB) WithDeletedPrivateState(ns, collection, key string) *StateDB
- func (m *StateDB) WithDeletedState(ns, key string) *StateDB
- func (m *StateDB) WithError(err error) *StateDB
- func (m *StateDB) WithIteratorProvider(p func() *KVIterator) *StateDB
- func (m *StateDB) WithPrivateQueryResults(ns, coll, query string, results []*statedb.VersionedKV) *StateDB
- func (m *StateDB) WithPrivateState(ns, collection, key string, value []byte) *StateDB
- func (m *StateDB) WithQueryError(err error) *StateDB
- func (m *StateDB) WithQueryResults(ns, query string, results []*statedb.VersionedKV) *StateDB
- func (m *StateDB) WithState(ns, key string, value []byte) *StateDB
- type TxnServiceProvider
- func (fake *TxnServiceProvider) ForChannel(channelID string) (txnapi.Service, error)
- func (fake *TxnServiceProvider) ForChannelArgsForCall(i int) string
- func (fake *TxnServiceProvider) ForChannelCallCount() int
- func (fake *TxnServiceProvider) ForChannelReturns(result1 txnapi.Service, result2 error)
- func (fake *TxnServiceProvider) ForChannelReturnsOnCall(i int, result1 txnapi.Service, result2 error)
- func (fake *TxnServiceProvider) Invocations() map[string][][]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchContext ¶
type BatchContext struct { ProtocolStub func() protocol.Client BlockchainStub func() batch.AnchorWriter OperationQueueStub func() cutter.OperationQueue // contains filtered or unexported fields }
func (*BatchContext) Anchor ¶ added in v0.6.0
func (fake *BatchContext) Anchor() batch.AnchorWriter
func (*BatchContext) AnchorCallCount ¶ added in v0.6.0
func (fake *BatchContext) AnchorCallCount() int
func (*BatchContext) AnchorReturns ¶ added in v0.6.0
func (fake *BatchContext) AnchorReturns(result1 batch.AnchorWriter)
func (*BatchContext) AnchorReturnsOnCall ¶ added in v0.6.0
func (fake *BatchContext) AnchorReturnsOnCall(i int, result1 batch.AnchorWriter)
func (*BatchContext) Invocations ¶
func (fake *BatchContext) Invocations() map[string][][]interface{}
func (*BatchContext) OperationQueue ¶ added in v0.1.3
func (fake *BatchContext) OperationQueue() cutter.OperationQueue
func (*BatchContext) OperationQueueCallCount ¶ added in v0.1.3
func (fake *BatchContext) OperationQueueCallCount() int
func (*BatchContext) OperationQueueReturns ¶ added in v0.1.3
func (fake *BatchContext) OperationQueueReturns(result1 cutter.OperationQueue)
func (*BatchContext) OperationQueueReturnsOnCall ¶ added in v0.1.3
func (fake *BatchContext) OperationQueueReturnsOnCall(i int, result1 cutter.OperationQueue)
func (*BatchContext) Protocol ¶
func (fake *BatchContext) Protocol() protocol.Client
func (*BatchContext) ProtocolCallCount ¶
func (fake *BatchContext) ProtocolCallCount() int
func (*BatchContext) ProtocolReturns ¶
func (fake *BatchContext) ProtocolReturns(result1 protocol.Client)
func (*BatchContext) ProtocolReturnsOnCall ¶
func (fake *BatchContext) ProtocolReturnsOnCall(i int, result1 protocol.Client)
type BatchWriter ¶
type BatchWriter struct { AddStub func(*operation.QueuedOperation, uint64) error StartStub func() error StopStub func() // contains filtered or unexported fields }
func (*BatchWriter) Add ¶
func (fake *BatchWriter) Add(arg1 *operation.QueuedOperation, arg2 uint64) error
func (*BatchWriter) AddArgsForCall ¶
func (fake *BatchWriter) AddArgsForCall(i int) (*operation.QueuedOperation, uint64)
func (*BatchWriter) AddCallCount ¶
func (fake *BatchWriter) AddCallCount() int
func (*BatchWriter) AddCalls ¶ added in v0.1.2
func (fake *BatchWriter) AddCalls(stub func(*operation.QueuedOperation, uint64) error)
func (*BatchWriter) AddReturns ¶
func (fake *BatchWriter) AddReturns(result1 error)
func (*BatchWriter) AddReturnsOnCall ¶
func (fake *BatchWriter) AddReturnsOnCall(i int, result1 error)
func (*BatchWriter) Invocations ¶
func (fake *BatchWriter) Invocations() map[string][][]interface{}
func (*BatchWriter) Start ¶
func (fake *BatchWriter) Start() error
func (*BatchWriter) StartCallCount ¶
func (fake *BatchWriter) StartCallCount() int
func (*BatchWriter) StartCalls ¶ added in v0.1.2
func (fake *BatchWriter) StartCalls(stub func() error)
func (*BatchWriter) StartReturns ¶
func (fake *BatchWriter) StartReturns(result1 error)
func (*BatchWriter) StartReturnsOnCall ¶
func (fake *BatchWriter) StartReturnsOnCall(i int, result1 error)
func (*BatchWriter) Stop ¶
func (fake *BatchWriter) Stop()
func (*BatchWriter) StopCallCount ¶
func (fake *BatchWriter) StopCallCount() int
func (*BatchWriter) StopCalls ¶ added in v0.1.2
func (fake *BatchWriter) StopCalls(stub func())
type ConfigService ¶
type ConfigService struct { GetStub func(key *config.Key) (*config.Value, error) QueryStub func(criteria *config.Criteria) ([]*config.KeyValue, error) AddUpdateHandlerStub func(handler config.UpdateHandler) // contains filtered or unexported fields }
func (*ConfigService) AddUpdateHandler ¶
func (fake *ConfigService) AddUpdateHandler(handler config.UpdateHandler)
func (*ConfigService) AddUpdateHandlerArgsForCall ¶
func (fake *ConfigService) AddUpdateHandlerArgsForCall(i int) config.UpdateHandler
func (*ConfigService) AddUpdateHandlerCallCount ¶
func (fake *ConfigService) AddUpdateHandlerCallCount() int
func (*ConfigService) GetArgsForCall ¶
func (fake *ConfigService) GetArgsForCall(i int) *config.Key
func (*ConfigService) GetCallCount ¶
func (fake *ConfigService) GetCallCount() int
func (*ConfigService) GetReturns ¶
func (fake *ConfigService) GetReturns(result1 *config.Value, result2 error)
func (*ConfigService) GetReturnsOnCall ¶
func (fake *ConfigService) GetReturnsOnCall(i int, result1 *config.Value, result2 error)
func (*ConfigService) Invocations ¶
func (fake *ConfigService) Invocations() map[string][][]interface{}
func (*ConfigService) QueryArgsForCall ¶
func (fake *ConfigService) QueryArgsForCall(i int) *config.Criteria
func (*ConfigService) QueryCallCount ¶
func (fake *ConfigService) QueryCallCount() int
func (*ConfigService) QueryReturns ¶
func (fake *ConfigService) QueryReturns(result1 []*config.KeyValue, result2 error)
func (*ConfigService) QueryReturnsOnCall ¶
func (fake *ConfigService) QueryReturnsOnCall(i int, result1 []*config.KeyValue, result2 error)
type ConfigServiceProvider ¶
type ConfigServiceProvider struct { ForChannelStub func(channelID string) ledgerconfig.Service // contains filtered or unexported fields }
func (*ConfigServiceProvider) ForChannel ¶
func (fake *ConfigServiceProvider) ForChannel(channelID string) ledgerconfig.Service
func (*ConfigServiceProvider) ForChannelArgsForCall ¶
func (fake *ConfigServiceProvider) ForChannelArgsForCall(i int) string
func (*ConfigServiceProvider) ForChannelCallCount ¶
func (fake *ConfigServiceProvider) ForChannelCallCount() int
func (*ConfigServiceProvider) ForChannelReturns ¶
func (fake *ConfigServiceProvider) ForChannelReturns(result1 ledgerconfig.Service)
func (*ConfigServiceProvider) ForChannelReturnsOnCall ¶
func (fake *ConfigServiceProvider) ForChannelReturnsOnCall(i int, result1 ledgerconfig.Service)
func (*ConfigServiceProvider) Invocations ¶
func (fake *ConfigServiceProvider) Invocations() map[string][][]interface{}
type DiscoveryProvider ¶ added in v0.1.4
type DiscoveryProvider struct { UpdateLocalServicesForChannelStub func(channelID string, services []discovery.Service) ServicesForChannelStub func(channelID string) []discovery.Service // contains filtered or unexported fields }
func (*DiscoveryProvider) Invocations ¶ added in v0.1.4
func (fake *DiscoveryProvider) Invocations() map[string][][]interface{}
func (*DiscoveryProvider) ServicesForChannel ¶ added in v0.1.4
func (fake *DiscoveryProvider) ServicesForChannel(channelID string) []discovery.Service
func (*DiscoveryProvider) ServicesForChannelArgsForCall ¶ added in v0.1.4
func (fake *DiscoveryProvider) ServicesForChannelArgsForCall(i int) string
func (*DiscoveryProvider) ServicesForChannelCallCount ¶ added in v0.1.4
func (fake *DiscoveryProvider) ServicesForChannelCallCount() int
func (*DiscoveryProvider) ServicesForChannelReturns ¶ added in v0.1.4
func (fake *DiscoveryProvider) ServicesForChannelReturns(result1 []discovery.Service)
func (*DiscoveryProvider) ServicesForChannelReturnsOnCall ¶ added in v0.1.4
func (fake *DiscoveryProvider) ServicesForChannelReturnsOnCall(i int, result1 []discovery.Service)
func (*DiscoveryProvider) UpdateLocalServicesForChannel ¶ added in v0.1.4
func (fake *DiscoveryProvider) UpdateLocalServicesForChannel(channelID string, services []discovery.Service)
func (*DiscoveryProvider) UpdateLocalServicesForChannelArgsForCall ¶ added in v0.1.4
func (fake *DiscoveryProvider) UpdateLocalServicesForChannelArgsForCall(i int) (string, []discovery.Service)
func (*DiscoveryProvider) UpdateLocalServicesForChannelCallCount ¶ added in v0.1.4
func (fake *DiscoveryProvider) UpdateLocalServicesForChannelCallCount() int
type HTTPHandler ¶
type HTTPHandler struct { PathStub func() string MethodStub func() string HandlerStub func() common.HTTPRequestHandler // contains filtered or unexported fields }
func (*HTTPHandler) Handler ¶
func (fake *HTTPHandler) Handler() common.HTTPRequestHandler
func (*HTTPHandler) HandlerCallCount ¶
func (fake *HTTPHandler) HandlerCallCount() int
func (*HTTPHandler) HandlerReturns ¶
func (fake *HTTPHandler) HandlerReturns(result1 common.HTTPRequestHandler)
func (*HTTPHandler) HandlerReturnsOnCall ¶
func (fake *HTTPHandler) HandlerReturnsOnCall(i int, result1 common.HTTPRequestHandler)
func (*HTTPHandler) Invocations ¶
func (fake *HTTPHandler) Invocations() map[string][][]interface{}
func (*HTTPHandler) Method ¶
func (fake *HTTPHandler) Method() string
func (*HTTPHandler) MethodCallCount ¶
func (fake *HTTPHandler) MethodCallCount() int
func (*HTTPHandler) MethodReturns ¶
func (fake *HTTPHandler) MethodReturns(result1 string)
func (*HTTPHandler) MethodReturnsOnCall ¶
func (fake *HTTPHandler) MethodReturnsOnCall(i int, result1 string)
func (*HTTPHandler) Path ¶
func (fake *HTTPHandler) Path() string
func (*HTTPHandler) PathCallCount ¶
func (fake *HTTPHandler) PathCallCount() int
func (*HTTPHandler) PathReturns ¶
func (fake *HTTPHandler) PathReturns(result1 string)
func (*HTTPHandler) PathReturnsOnCall ¶
func (fake *HTTPHandler) PathReturnsOnCall(i int, result1 string)
type KVIterator ¶ added in v0.1.5
type KVIterator struct {
// contains filtered or unexported fields
}
KVIterator is a mock key-value iterator
func NewKVIterator ¶ added in v0.1.5
func NewKVIterator() *KVIterator
NewKVIterator returns a mock key-value iterator
func (*KVIterator) Close ¶ added in v0.1.5
func (it *KVIterator) Close()
Close releases resources occupied by the iterator
func (*KVIterator) GetBookmarkAndClose ¶ added in v0.1.5
func (it *KVIterator) GetBookmarkAndClose() string
GetBookmarkAndClose is not implemented
func (*KVIterator) Next ¶ added in v0.1.5
func (it *KVIterator) Next() (statedb.QueryResult, error)
Next returns the next item in the result set. The `QueryResult` is expected to be nil when the iterator gets exhausted
func (*KVIterator) WithError ¶ added in v0.1.5
func (it *KVIterator) WithError(err error) *KVIterator
WithError injects an error
func (*KVIterator) WithResults ¶ added in v0.1.5
func (it *KVIterator) WithResults(kv ...*statedb.VersionedKV) *KVIterator
WithResults adds a key-value
type PeerConfig ¶
type PeerConfig struct { PeerIDStub func() string PeerAddressStub func() string MSPIDStub func() string // contains filtered or unexported fields }
func (*PeerConfig) Invocations ¶
func (fake *PeerConfig) Invocations() map[string][][]interface{}
func (*PeerConfig) MSPID ¶
func (fake *PeerConfig) MSPID() string
func (*PeerConfig) MSPIDCallCount ¶
func (fake *PeerConfig) MSPIDCallCount() int
func (*PeerConfig) MSPIDReturns ¶
func (fake *PeerConfig) MSPIDReturns(result1 string)
func (*PeerConfig) MSPIDReturnsOnCall ¶
func (fake *PeerConfig) MSPIDReturnsOnCall(i int, result1 string)
func (*PeerConfig) PeerAddress ¶ added in v0.1.4
func (fake *PeerConfig) PeerAddress() string
func (*PeerConfig) PeerAddressCallCount ¶ added in v0.1.4
func (fake *PeerConfig) PeerAddressCallCount() int
func (*PeerConfig) PeerAddressReturns ¶ added in v0.1.4
func (fake *PeerConfig) PeerAddressReturns(result1 string)
func (*PeerConfig) PeerAddressReturnsOnCall ¶ added in v0.1.4
func (fake *PeerConfig) PeerAddressReturnsOnCall(i int, result1 string)
func (*PeerConfig) PeerID ¶
func (fake *PeerConfig) PeerID() string
func (*PeerConfig) PeerIDCallCount ¶
func (fake *PeerConfig) PeerIDCallCount() int
func (*PeerConfig) PeerIDReturns ¶
func (fake *PeerConfig) PeerIDReturns(result1 string)
func (*PeerConfig) PeerIDReturnsOnCall ¶
func (fake *PeerConfig) PeerIDReturnsOnCall(i int, result1 string)
type ProtocolProvider ¶
type ProtocolProvider struct { ProtocolStub func() protocol.Client // contains filtered or unexported fields }
func (*ProtocolProvider) Invocations ¶
func (fake *ProtocolProvider) Invocations() map[string][][]interface{}
func (*ProtocolProvider) Protocol ¶
func (fake *ProtocolProvider) Protocol() protocol.Client
func (*ProtocolProvider) ProtocolCallCount ¶
func (fake *ProtocolProvider) ProtocolCallCount() int
func (*ProtocolProvider) ProtocolReturns ¶
func (fake *ProtocolProvider) ProtocolReturns(result1 protocol.Client)
func (*ProtocolProvider) ProtocolReturnsOnCall ¶
func (fake *ProtocolProvider) ProtocolReturnsOnCall(i int, result1 protocol.Client)
type ProtocolVersionFactory ¶ added in v0.1.5
type ProtocolVersionFactory struct { CreateProtocolVersionStub func(string, protocol.Protocol, cas.Client, common.OperationStore, string, config.Sidetree) (protocol.Version, error) // contains filtered or unexported fields }
func (*ProtocolVersionFactory) CreateProtocolVersion ¶ added in v0.1.5
func (*ProtocolVersionFactory) CreateProtocolVersionArgsForCall ¶ added in v0.1.5
func (*ProtocolVersionFactory) CreateProtocolVersionCallCount ¶ added in v0.1.5
func (fake *ProtocolVersionFactory) CreateProtocolVersionCallCount() int
func (*ProtocolVersionFactory) CreateProtocolVersionCalls ¶ added in v0.1.5
func (*ProtocolVersionFactory) CreateProtocolVersionReturns ¶ added in v0.1.5
func (fake *ProtocolVersionFactory) CreateProtocolVersionReturns(result1 protocol.Version, result2 error)
func (*ProtocolVersionFactory) CreateProtocolVersionReturnsOnCall ¶ added in v0.1.5
func (fake *ProtocolVersionFactory) CreateProtocolVersionReturnsOnCall(i int, result1 protocol.Version, result2 error)
func (*ProtocolVersionFactory) Invocations ¶ added in v0.1.5
func (fake *ProtocolVersionFactory) Invocations() map[string][][]interface{}
type RESTServerController ¶
type RESTServerController struct { RestartRESTServiceStub func() // contains filtered or unexported fields }
func (*RESTServerController) Invocations ¶
func (fake *RESTServerController) Invocations() map[string][][]interface{}
func (*RESTServerController) RestartRESTService ¶
func (fake *RESTServerController) RestartRESTService()
func (*RESTServerController) RestartRESTServiceCallCount ¶ added in v0.1.3
func (fake *RESTServerController) RestartRESTServiceCallCount() int
type RestConfig ¶
type RestConfig struct { SidetreeListenURLStub func() (string, error) SidetreeListenPortStub func() int SidetreeTLSCertificateStub func() string SidetreeTLSKeyStub func() string SidetreeAPITokenStub func(name string) string // contains filtered or unexported fields }
func (*RestConfig) Invocations ¶
func (fake *RestConfig) Invocations() map[string][][]interface{}
func (*RestConfig) SidetreeAPIToken ¶ added in v0.1.3
func (fake *RestConfig) SidetreeAPIToken(name string) string
func (*RestConfig) SidetreeAPITokenArgsForCall ¶ added in v0.1.3
func (fake *RestConfig) SidetreeAPITokenArgsForCall(i int) string
func (*RestConfig) SidetreeAPITokenCallCount ¶ added in v0.1.3
func (fake *RestConfig) SidetreeAPITokenCallCount() int
func (*RestConfig) SidetreeAPITokenReturns ¶ added in v0.1.3
func (fake *RestConfig) SidetreeAPITokenReturns(result1 string)
func (*RestConfig) SidetreeAPITokenReturnsOnCall ¶ added in v0.1.3
func (fake *RestConfig) SidetreeAPITokenReturnsOnCall(i int, result1 string)
func (*RestConfig) SidetreeListenPort ¶ added in v0.1.4
func (fake *RestConfig) SidetreeListenPort() int
func (*RestConfig) SidetreeListenPortCallCount ¶ added in v0.1.4
func (fake *RestConfig) SidetreeListenPortCallCount() int
func (*RestConfig) SidetreeListenPortReturns ¶ added in v0.1.4
func (fake *RestConfig) SidetreeListenPortReturns(result1 int)
func (*RestConfig) SidetreeListenPortReturnsOnCall ¶ added in v0.1.4
func (fake *RestConfig) SidetreeListenPortReturnsOnCall(i int, result1 int)
func (*RestConfig) SidetreeListenURL ¶
func (fake *RestConfig) SidetreeListenURL() (string, error)
func (*RestConfig) SidetreeListenURLCallCount ¶
func (fake *RestConfig) SidetreeListenURLCallCount() int
func (*RestConfig) SidetreeListenURLReturns ¶
func (fake *RestConfig) SidetreeListenURLReturns(result1 string, result2 error)
func (*RestConfig) SidetreeListenURLReturnsOnCall ¶
func (fake *RestConfig) SidetreeListenURLReturnsOnCall(i int, result1 string, result2 error)
func (*RestConfig) SidetreeTLSCertificate ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSCertificate() string
func (*RestConfig) SidetreeTLSCertificateCallCount ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSCertificateCallCount() int
func (*RestConfig) SidetreeTLSCertificateReturns ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSCertificateReturns(result1 string)
func (*RestConfig) SidetreeTLSCertificateReturnsOnCall ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSCertificateReturnsOnCall(i int, result1 string)
func (*RestConfig) SidetreeTLSKey ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSKey() string
func (*RestConfig) SidetreeTLSKeyCallCount ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSKeyCallCount() int
func (*RestConfig) SidetreeTLSKeyReturns ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSKeyReturns(result1 string)
func (*RestConfig) SidetreeTLSKeyReturnsOnCall ¶ added in v0.1.3
func (fake *RestConfig) SidetreeTLSKeyReturnsOnCall(i int, result1 string)
type SidetreeConfigProvider ¶
type SidetreeConfigProvider struct { ForChannelStub func(channelID string) config.SidetreeService // contains filtered or unexported fields }
func (*SidetreeConfigProvider) ForChannel ¶
func (fake *SidetreeConfigProvider) ForChannel(channelID string) config.SidetreeService
func (*SidetreeConfigProvider) ForChannelArgsForCall ¶
func (fake *SidetreeConfigProvider) ForChannelArgsForCall(i int) string
func (*SidetreeConfigProvider) ForChannelCallCount ¶
func (fake *SidetreeConfigProvider) ForChannelCallCount() int
func (*SidetreeConfigProvider) ForChannelReturns ¶
func (fake *SidetreeConfigProvider) ForChannelReturns(result1 config.SidetreeService)
func (*SidetreeConfigProvider) ForChannelReturnsOnCall ¶
func (fake *SidetreeConfigProvider) ForChannelReturnsOnCall(i int, result1 config.SidetreeService)
func (*SidetreeConfigProvider) Invocations ¶
func (fake *SidetreeConfigProvider) Invocations() map[string][][]interface{}
type StateDB ¶ added in v0.1.5
type StateDB struct {
// contains filtered or unexported fields
}
StateDB implements a mock StateDB
func (*StateDB) BytesKeySupported ¶ added in v0.1.5
BytesKeySupported returns true if the implementation (underlying db) supports the any bytes to be used as key. For instance, leveldb supports any bytes for the key while the couchdb supports only valid utf-8 string
func (*StateDB) ExecuteQuery ¶ added in v0.1.5
func (m *StateDB) ExecuteQuery(namespace, query string) (statedb.ResultsIterator, error)
ExecuteQuery executes the given query and returns an iterator that contains results of type *VersionedKV.
func (*StateDB) ExecuteQueryWithPagination ¶ added in v0.1.5
func (m *StateDB) ExecuteQueryWithPagination(namespace, query, bookmark string, pageSize int32) (statedb.QueryResultsIterator, error)
ExecuteQueryWithPagination executes the given query and returns an iterator that contains results of type *VersionedKV. The bookmark and page size parameters are associated with the pagination query.
func (*StateDB) GetState ¶ added in v0.1.5
GetState gets the value for given namespace and key. For a chaincode, the namespace corresponds to the chaincodeId
func (*StateDB) GetStateMultipleKeys ¶ added in v0.1.5
GetStateMultipleKeys gets the values for multiple keys in a single call
func (*StateDB) GetStateRangeScanIterator ¶ added in v0.1.5
func (m *StateDB) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (statedb.ResultsIterator, error)
GetStateRangeScanIterator returns an iterator that contains all the key-values between given key ranges. startKey is inclusive endKey is exclusive The returned ResultsIterator contains results of type *VersionedKV
func (*StateDB) GetStateRangeScanIteratorWithPagination ¶ added in v0.1.5
func (m *StateDB) GetStateRangeScanIteratorWithPagination(namespace string, startKey string, endKey string, pageSize int32) (statedb.QueryResultsIterator, error)
GetStateRangeScanIteratorWithPagination returns an iterator that contains all the key-values between given key ranges. startKey is inclusive endKey is exclusive pageSize parameter limits the number of returned results The returned ResultsIterator contains results of type *VersionedKV
func (*StateDB) UpdateCache ¶ added in v0.1.5
UpdateCache updates the state cache with the given updates. The format of the updates depends on the database implementation.
func (*StateDB) WithDeletedPrivateState ¶ added in v0.1.5
WithDeletedPrivateState deletes the state
func (*StateDB) WithDeletedState ¶ added in v0.1.5
WithDeletedState deletes the state
func (*StateDB) WithIteratorProvider ¶ added in v0.1.5
func (m *StateDB) WithIteratorProvider(p func() *KVIterator) *StateDB
WithIteratorProvider sets the results iterator provider
func (*StateDB) WithPrivateQueryResults ¶ added in v0.1.5
func (m *StateDB) WithPrivateQueryResults(ns, coll, query string, results []*statedb.VersionedKV) *StateDB
WithPrivateQueryResults sets the query results for a given query on a private collection
func (*StateDB) WithPrivateState ¶ added in v0.1.5
WithPrivateState sets the private state
func (*StateDB) WithQueryError ¶ added in v0.1.5
WithQueryError injects an error to the mock executor for queries
func (*StateDB) WithQueryResults ¶ added in v0.1.5
func (m *StateDB) WithQueryResults(ns, query string, results []*statedb.VersionedKV) *StateDB
WithQueryResults sets the query results for a given query on a namespace
type TxnServiceProvider ¶
type TxnServiceProvider struct { ForChannelStub func(channelID string) (txnapi.Service, error) // contains filtered or unexported fields }
func (*TxnServiceProvider) ForChannel ¶
func (fake *TxnServiceProvider) ForChannel(channelID string) (txnapi.Service, error)
func (*TxnServiceProvider) ForChannelArgsForCall ¶
func (fake *TxnServiceProvider) ForChannelArgsForCall(i int) string
func (*TxnServiceProvider) ForChannelCallCount ¶
func (fake *TxnServiceProvider) ForChannelCallCount() int
func (*TxnServiceProvider) ForChannelReturns ¶
func (fake *TxnServiceProvider) ForChannelReturns(result1 txnapi.Service, result2 error)
func (*TxnServiceProvider) ForChannelReturnsOnCall ¶
func (fake *TxnServiceProvider) ForChannelReturnsOnCall(i int, result1 txnapi.Service, result2 error)
func (*TxnServiceProvider) Invocations ¶
func (fake *TxnServiceProvider) Invocations() map[string][][]interface{}
Source Files ¶
- batchcontext.gen.go
- batchwriter.gen.go
- configservice.gen.go
- configserviceprovider.gen.go
- discoveryprovider.gen.go
- httphandler.gen.go
- peerconfig.gen.go
- protocolprovider.gen.go
- protocolversionfactory.gen.go
- restconfig.gen.go
- restservercontroller.gen.go
- sidetreeconfigprovider.gen.go
- statedb.go
- txnserviceprovider.gen.go