Documentation ¶
Overview ¶
Package connector-mocks is a generated GoMock package.
Package connector-mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package connector-mocks is a generated GoMock package.
Index ¶
- func MockedConnector(connection *MockConnection) gobolt.Connector
- type MockConnection
- func (m *MockConnection) Begin(arg0 []string, arg1 time.Duration, arg2 map[string]interface{}) (gobolt.RequestHandle, error)
- func (m *MockConnection) Close() error
- func (m *MockConnection) Commit() (gobolt.RequestHandle, error)
- func (m *MockConnection) Data() ([]interface{}, error)
- func (m *MockConnection) DiscardAll() (gobolt.RequestHandle, error)
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) Fetch(arg0 gobolt.RequestHandle) (gobolt.FetchType, error)
- func (m *MockConnection) FetchSummary(arg0 gobolt.RequestHandle) (int, error)
- func (m *MockConnection) Fields() ([]string, error)
- func (m *MockConnection) Flush() error
- func (m *MockConnection) LastBookmark() string
- func (m *MockConnection) Metadata() (map[string]interface{}, error)
- func (m *MockConnection) PullAll() (gobolt.RequestHandle, error)
- func (m *MockConnection) RemoteAddress() string
- func (m *MockConnection) Reset() (gobolt.RequestHandle, error)
- func (m *MockConnection) Rollback() (gobolt.RequestHandle, error)
- func (m *MockConnection) Run(arg0 string, arg1 map[string]interface{}, arg2 []string, arg3 time.Duration, ...) (gobolt.RequestHandle, error)
- func (m *MockConnection) Server() string
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) Begin(arg0 interface{}, arg1 interface{}, arg2 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockConnectionMockRecorder) Commit() *gomock.Call
- func (mr *MockConnectionMockRecorder) Data() *gomock.Call
- func (mr *MockConnectionMockRecorder) DiscardAll() *gomock.Call
- func (mr *MockConnectionMockRecorder) Fetch(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) FetchSummary(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Fields() *gomock.Call
- func (mr *MockConnectionMockRecorder) Flush() *gomock.Call
- func (mr *MockConnectionMockRecorder) LastBookmark() *gomock.Call
- func (mr *MockConnectionMockRecorder) Metadata() *gomock.Call
- func (mr *MockConnectionMockRecorder) PullAll() *gomock.Call
- func (mr *MockConnectionMockRecorder) RemoteAddress() *gomock.Call
- func (mr *MockConnectionMockRecorder) Reset() *gomock.Call
- func (mr *MockConnectionMockRecorder) Rollback() *gomock.Call
- func (mr *MockConnectionMockRecorder) Run(arg0, arg1 interface{}, arg2 interface{}, arg3 interface{}, arg4 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Server() *gomock.Call
- type MockConnector
- type MockConnectorMockRecorder
- type MockLogging
- func (m *MockLogging) DebugEnabled() bool
- func (m *MockLogging) Debugf(arg0 string, arg1 ...interface{})
- func (m *MockLogging) EXPECT() *MockLoggingMockRecorder
- func (m *MockLogging) ErrorEnabled() bool
- func (m *MockLogging) Errorf(arg0 string, arg1 ...interface{})
- func (m *MockLogging) InfoEnabled() bool
- func (m *MockLogging) Infof(arg0 string, arg1 ...interface{})
- func (m *MockLogging) WarningEnabled() bool
- func (m *MockLogging) Warningf(arg0 string, arg1 ...interface{})
- type MockLoggingMockRecorder
- func (mr *MockLoggingMockRecorder) DebugEnabled() *gomock.Call
- func (mr *MockLoggingMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggingMockRecorder) ErrorEnabled() *gomock.Call
- func (mr *MockLoggingMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggingMockRecorder) InfoEnabled() *gomock.Call
- func (mr *MockLoggingMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggingMockRecorder) WarningEnabled() *gomock.Call
- func (mr *MockLoggingMockRecorder) Warningf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type MockPool
- type MockPoolMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockedConnector ¶
func MockedConnector(connection *MockConnection) gobolt.Connector
MockedConnector returns a mocked connector with the provided mocked connection
Types ¶
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance
func (*MockConnection) Begin ¶
func (m *MockConnection) Begin(arg0 []string, arg1 time.Duration, arg2 map[string]interface{}) (gobolt.RequestHandle, error)
Begin connector-mocks base method
func (*MockConnection) Close ¶
func (m *MockConnection) Close() error
Close connector-mocks base method
func (*MockConnection) Commit ¶
func (m *MockConnection) Commit() (gobolt.RequestHandle, error)
Commit connector-mocks base method
func (*MockConnection) Data ¶
func (m *MockConnection) Data() ([]interface{}, error)
Data connector-mocks base method
func (*MockConnection) DiscardAll ¶
func (m *MockConnection) DiscardAll() (gobolt.RequestHandle, error)
DiscardAll connector-mocks base method
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConnection) Fetch ¶
func (m *MockConnection) Fetch(arg0 gobolt.RequestHandle) (gobolt.FetchType, error)
Fetch connector-mocks base method
func (*MockConnection) FetchSummary ¶
func (m *MockConnection) FetchSummary(arg0 gobolt.RequestHandle) (int, error)
FetchSummary connector-mocks base method
func (*MockConnection) Fields ¶
func (m *MockConnection) Fields() ([]string, error)
Metadata connector-mocks base method
func (*MockConnection) Flush ¶
func (m *MockConnection) Flush() error
Flush connector-mocks base method
func (*MockConnection) LastBookmark ¶
func (m *MockConnection) LastBookmark() string
LastBookmark connector-mocks base method
func (*MockConnection) Metadata ¶
func (m *MockConnection) Metadata() (map[string]interface{}, error)
Metadata connector-mocks base method
func (*MockConnection) PullAll ¶
func (m *MockConnection) PullAll() (gobolt.RequestHandle, error)
PullAll connector-mocks base method
func (*MockConnection) RemoteAddress ¶
func (m *MockConnection) RemoteAddress() string
RemoteAddress connector-mocks base method
func (*MockConnection) Reset ¶
func (m *MockConnection) Reset() (gobolt.RequestHandle, error)
Reset connector-mocks base method
func (*MockConnection) Rollback ¶
func (m *MockConnection) Rollback() (gobolt.RequestHandle, error)
Rollback connector-mocks base method
func (*MockConnection) Run ¶
func (m *MockConnection) Run(arg0 string, arg1 map[string]interface{}, arg2 []string, arg3 time.Duration, arg4 map[string]interface{}) (gobolt.RequestHandle, error)
Run connector-mocks base method
func (*MockConnection) Server ¶
func (m *MockConnection) Server() string
Server connector-mocks base method
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection
func (*MockConnectionMockRecorder) Begin ¶
func (mr *MockConnectionMockRecorder) Begin(arg0 interface{}, arg1 interface{}, arg2 interface{}) *gomock.Call
Begin indicates an expected call of Begin
func (*MockConnectionMockRecorder) Close ¶
func (mr *MockConnectionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnectionMockRecorder) Commit ¶
func (mr *MockConnectionMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockConnectionMockRecorder) Data ¶
func (mr *MockConnectionMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data
func (*MockConnectionMockRecorder) DiscardAll ¶
func (mr *MockConnectionMockRecorder) DiscardAll() *gomock.Call
DiscardAll indicates an expected call of DiscardAll
func (*MockConnectionMockRecorder) Fetch ¶
func (mr *MockConnectionMockRecorder) Fetch(arg0 interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockConnectionMockRecorder) FetchSummary ¶
func (mr *MockConnectionMockRecorder) FetchSummary(arg0 interface{}) *gomock.Call
FetchSummary indicates an expected call of FetchSummary
func (*MockConnectionMockRecorder) Fields ¶
func (mr *MockConnectionMockRecorder) Fields() *gomock.Call
Metadata indicates an expected call of Metadata
func (*MockConnectionMockRecorder) Flush ¶
func (mr *MockConnectionMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush
func (*MockConnectionMockRecorder) LastBookmark ¶
func (mr *MockConnectionMockRecorder) LastBookmark() *gomock.Call
LastBookmark indicates an expected call of LastBookmark
func (*MockConnectionMockRecorder) Metadata ¶
func (mr *MockConnectionMockRecorder) Metadata() *gomock.Call
Metadata indicates an expected call of Metadata
func (*MockConnectionMockRecorder) PullAll ¶
func (mr *MockConnectionMockRecorder) PullAll() *gomock.Call
PullAll indicates an expected call of PullAll
func (*MockConnectionMockRecorder) RemoteAddress ¶
func (mr *MockConnectionMockRecorder) RemoteAddress() *gomock.Call
RemoteAddress indicates an expected call of RemoteAddress
func (*MockConnectionMockRecorder) Reset ¶
func (mr *MockConnectionMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset
func (*MockConnectionMockRecorder) Rollback ¶
func (mr *MockConnectionMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback
func (*MockConnectionMockRecorder) Run ¶
func (mr *MockConnectionMockRecorder) Run(arg0, arg1 interface{}, arg2 interface{}, arg3 interface{}, arg4 interface{}) *gomock.Call
Run indicates an expected call of Run
func (*MockConnectionMockRecorder) Server ¶
func (mr *MockConnectionMockRecorder) Server() *gomock.Call
Server indicates an expected call of Server
type MockConnector ¶
type MockConnector struct {
// contains filtered or unexported fields
}
MockConnector is a mock of Connector interface
func NewMockConnector ¶
func NewMockConnector(ctrl *gomock.Controller) *MockConnector
NewMockConnector creates a new mock instance
func (*MockConnector) Acquire ¶
func (m *MockConnector) Acquire(arg0 gobolt.AccessMode) (gobolt.Connection, error)
GetPool connector-mocks base method
func (*MockConnector) Close ¶
func (m *MockConnector) Close() error
Close connector-mocks base method
func (*MockConnector) EXPECT ¶
func (m *MockConnector) EXPECT() *MockConnectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockConnectorMockRecorder ¶
type MockConnectorMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectorMockRecorder is the mock recorder for MockConnector
func (*MockConnectorMockRecorder) Acquire ¶
func (mr *MockConnectorMockRecorder) Acquire(arg0 gobolt.AccessMode) *gomock.Call
GetPool indicates an expected call of GetPool
func (*MockConnectorMockRecorder) Close ¶
func (mr *MockConnectorMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
type MockLogging ¶
type MockLogging struct {
// contains filtered or unexported fields
}
MockLogging is a mock of Logging interface
func NewMockLogging ¶
func NewMockLogging(ctrl *gomock.Controller) *MockLogging
NewMockLogging creates a new mock instance
func (*MockLogging) DebugEnabled ¶
func (m *MockLogging) DebugEnabled() bool
DebugEnabled mocks base method
func (*MockLogging) Debugf ¶
func (m *MockLogging) Debugf(arg0 string, arg1 ...interface{})
Debugf mocks base method
func (*MockLogging) EXPECT ¶
func (m *MockLogging) EXPECT() *MockLoggingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLogging) ErrorEnabled ¶
func (m *MockLogging) ErrorEnabled() bool
ErrorEnabled mocks base method
func (*MockLogging) Errorf ¶
func (m *MockLogging) Errorf(arg0 string, arg1 ...interface{})
Errorf mocks base method
func (*MockLogging) InfoEnabled ¶
func (m *MockLogging) InfoEnabled() bool
InfoEnabled mocks base method
func (*MockLogging) Infof ¶
func (m *MockLogging) Infof(arg0 string, arg1 ...interface{})
Infof mocks base method
func (*MockLogging) WarningEnabled ¶
func (m *MockLogging) WarningEnabled() bool
WarningEnabled mocks base method
func (*MockLogging) Warningf ¶
func (m *MockLogging) Warningf(arg0 string, arg1 ...interface{})
Warningf mocks base method
type MockLoggingMockRecorder ¶
type MockLoggingMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggingMockRecorder is the mock recorder for MockLogging
func (*MockLoggingMockRecorder) DebugEnabled ¶
func (mr *MockLoggingMockRecorder) DebugEnabled() *gomock.Call
DebugEnabled indicates an expected call of DebugEnabled
func (*MockLoggingMockRecorder) Debugf ¶
func (mr *MockLoggingMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Debugf indicates an expected call of Debugf
func (*MockLoggingMockRecorder) ErrorEnabled ¶
func (mr *MockLoggingMockRecorder) ErrorEnabled() *gomock.Call
ErrorEnabled indicates an expected call of ErrorEnabled
func (*MockLoggingMockRecorder) Errorf ¶
func (mr *MockLoggingMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Errorf indicates an expected call of Errorf
func (*MockLoggingMockRecorder) InfoEnabled ¶
func (mr *MockLoggingMockRecorder) InfoEnabled() *gomock.Call
InfoEnabled indicates an expected call of InfoEnabled
func (*MockLoggingMockRecorder) Infof ¶
func (mr *MockLoggingMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Infof indicates an expected call of Infof
func (*MockLoggingMockRecorder) WarningEnabled ¶
func (mr *MockLoggingMockRecorder) WarningEnabled() *gomock.Call
WarningEnabled indicates an expected call of WarningEnabled
func (*MockLoggingMockRecorder) Warningf ¶
func (mr *MockLoggingMockRecorder) Warningf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Warningf indicates an expected call of Warningf
type MockPool ¶
type MockPool struct {
// contains filtered or unexported fields
}
MockPool is a mock of Pool interface
func NewMockPool ¶
func NewMockPool(ctrl *gomock.Controller) *MockPool
NewMockPool creates a new mock instance
func (*MockPool) Acquire ¶
func (m *MockPool) Acquire() (gobolt.Connection, error)
Acquire connector-mocks base method
func (*MockPool) EXPECT ¶
func (m *MockPool) EXPECT() *MockPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPoolMockRecorder ¶
type MockPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolMockRecorder is the mock recorder for MockPool
func (*MockPoolMockRecorder) Acquire ¶
func (mr *MockPoolMockRecorder) Acquire() *gomock.Call
Acquire indicates an expected call of Acquire
func (*MockPoolMockRecorder) Close ¶
func (mr *MockPoolMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close