Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockDBInstance
- func (m *MockDBInstance) AvailabilityZone() string
- func (m *MockDBInstance) Cancel(csm *pgproto3.CancelRequest) error
- func (m *MockDBInstance) Close() error
- func (m *MockDBInstance) EXPECT() *MockDBInstanceMockRecorder
- func (m *MockDBInstance) Hostname() string
- func (m *MockDBInstance) Receive() (pgproto3.BackendMessage, error)
- func (m *MockDBInstance) ReqBackendSsl(arg0 *tls.Config) error
- func (m *MockDBInstance) Send(query pgproto3.FrontendMessage) error
- func (m *MockDBInstance) SetStatus(status conn.InstanceStatus)
- func (m *MockDBInstance) ShardName() string
- func (m *MockDBInstance) Status() conn.InstanceStatus
- func (m *MockDBInstance) Tls() *tls.Config
- type MockDBInstanceMockRecorder
- func (mr *MockDBInstanceMockRecorder) AvailabilityZone() *gomock.Call
- func (mr *MockDBInstanceMockRecorder) Cancel(csm interface{}) *gomock.Call
- func (mr *MockDBInstanceMockRecorder) Close() *gomock.Call
- func (mr *MockDBInstanceMockRecorder) Hostname() *gomock.Call
- func (mr *MockDBInstanceMockRecorder) Receive() *gomock.Call
- func (mr *MockDBInstanceMockRecorder) ReqBackendSsl(arg0 interface{}) *gomock.Call
- func (mr *MockDBInstanceMockRecorder) Send(query interface{}) *gomock.Call
- func (mr *MockDBInstanceMockRecorder) SetStatus(status interface{}) *gomock.Call
- func (mr *MockDBInstanceMockRecorder) ShardName() *gomock.Call
- func (mr *MockDBInstanceMockRecorder) Status() *gomock.Call
- func (mr *MockDBInstanceMockRecorder) Tls() *gomock.Call
- type MockRawConn
- func (m *MockRawConn) Close() error
- func (m *MockRawConn) EXPECT() *MockRawConnMockRecorder
- func (m *MockRawConn) LocalAddr() net.Addr
- func (m *MockRawConn) Read(b []byte) (int, error)
- func (m *MockRawConn) RemoteAddr() net.Addr
- func (m *MockRawConn) SetDeadline(t time.Time) error
- func (m *MockRawConn) SetReadDeadline(t time.Time) error
- func (m *MockRawConn) SetWriteDeadline(t time.Time) error
- func (m *MockRawConn) Write(b []byte) (int, error)
- type MockRawConnMockRecorder
- func (mr *MockRawConnMockRecorder) Close() *gomock.Call
- func (mr *MockRawConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockRawConnMockRecorder) Read(b interface{}) *gomock.Call
- func (mr *MockRawConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockRawConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
- func (mr *MockRawConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
- func (mr *MockRawConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
- func (mr *MockRawConnMockRecorder) Write(b interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDBInstance ¶
type MockDBInstance struct {
// contains filtered or unexported fields
}
MockDBInstance is a mock of DBInstance interface.
func NewMockDBInstance ¶
func NewMockDBInstance(ctrl *gomock.Controller) *MockDBInstance
NewMockDBInstance creates a new mock instance.
func (*MockDBInstance) AvailabilityZone ¶
func (m *MockDBInstance) AvailabilityZone() string
AvailabilityZone mocks base method.
func (*MockDBInstance) Cancel ¶
func (m *MockDBInstance) Cancel(csm *pgproto3.CancelRequest) error
Cancel mocks base method.
func (*MockDBInstance) EXPECT ¶
func (m *MockDBInstance) EXPECT() *MockDBInstanceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBInstance) Hostname ¶
func (m *MockDBInstance) Hostname() string
Hostname mocks base method.
func (*MockDBInstance) Receive ¶
func (m *MockDBInstance) Receive() (pgproto3.BackendMessage, error)
Receive mocks base method.
func (*MockDBInstance) ReqBackendSsl ¶
func (m *MockDBInstance) ReqBackendSsl(arg0 *tls.Config) error
ReqBackendSsl mocks base method.
func (*MockDBInstance) Send ¶
func (m *MockDBInstance) Send(query pgproto3.FrontendMessage) error
Send mocks base method.
func (*MockDBInstance) SetStatus ¶
func (m *MockDBInstance) SetStatus(status conn.InstanceStatus)
SetStatus mocks base method.
func (*MockDBInstance) ShardName ¶
func (m *MockDBInstance) ShardName() string
ShardName mocks base method.
func (*MockDBInstance) Status ¶
func (m *MockDBInstance) Status() conn.InstanceStatus
Status mocks base method.
type MockDBInstanceMockRecorder ¶
type MockDBInstanceMockRecorder struct {
// contains filtered or unexported fields
}
MockDBInstanceMockRecorder is the mock recorder for MockDBInstance.
func (*MockDBInstanceMockRecorder) AvailabilityZone ¶
func (mr *MockDBInstanceMockRecorder) AvailabilityZone() *gomock.Call
AvailabilityZone indicates an expected call of AvailabilityZone.
func (*MockDBInstanceMockRecorder) Cancel ¶
func (mr *MockDBInstanceMockRecorder) Cancel(csm interface{}) *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockDBInstanceMockRecorder) Close ¶
func (mr *MockDBInstanceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDBInstanceMockRecorder) Hostname ¶
func (mr *MockDBInstanceMockRecorder) Hostname() *gomock.Call
Hostname indicates an expected call of Hostname.
func (*MockDBInstanceMockRecorder) Receive ¶
func (mr *MockDBInstanceMockRecorder) Receive() *gomock.Call
Receive indicates an expected call of Receive.
func (*MockDBInstanceMockRecorder) ReqBackendSsl ¶
func (mr *MockDBInstanceMockRecorder) ReqBackendSsl(arg0 interface{}) *gomock.Call
ReqBackendSsl indicates an expected call of ReqBackendSsl.
func (*MockDBInstanceMockRecorder) Send ¶
func (mr *MockDBInstanceMockRecorder) Send(query interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockDBInstanceMockRecorder) SetStatus ¶
func (mr *MockDBInstanceMockRecorder) SetStatus(status interface{}) *gomock.Call
SetStatus indicates an expected call of SetStatus.
func (*MockDBInstanceMockRecorder) ShardName ¶
func (mr *MockDBInstanceMockRecorder) ShardName() *gomock.Call
ShardName indicates an expected call of ShardName.
func (*MockDBInstanceMockRecorder) Status ¶
func (mr *MockDBInstanceMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
func (*MockDBInstanceMockRecorder) Tls ¶
func (mr *MockDBInstanceMockRecorder) Tls() *gomock.Call
Tls indicates an expected call of Tls.
type MockRawConn ¶
type MockRawConn struct {
// contains filtered or unexported fields
}
MockRawConn is a mock of RawConn interface.
func NewMockRawConn ¶
func NewMockRawConn(ctrl *gomock.Controller) *MockRawConn
NewMockRawConn creates a new mock instance.
func (*MockRawConn) EXPECT ¶
func (m *MockRawConn) EXPECT() *MockRawConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRawConn) LocalAddr ¶
func (m *MockRawConn) LocalAddr() net.Addr
LocalAddr mocks base method.
func (*MockRawConn) Read ¶
func (m *MockRawConn) Read(b []byte) (int, error)
Read mocks base method.
func (*MockRawConn) RemoteAddr ¶
func (m *MockRawConn) RemoteAddr() net.Addr
RemoteAddr mocks base method.
func (*MockRawConn) SetDeadline ¶
func (m *MockRawConn) SetDeadline(t time.Time) error
SetDeadline mocks base method.
func (*MockRawConn) SetReadDeadline ¶
func (m *MockRawConn) SetReadDeadline(t time.Time) error
SetReadDeadline mocks base method.
func (*MockRawConn) SetWriteDeadline ¶
func (m *MockRawConn) SetWriteDeadline(t time.Time) error
SetWriteDeadline mocks base method.
type MockRawConnMockRecorder ¶
type MockRawConnMockRecorder struct {
// contains filtered or unexported fields
}
MockRawConnMockRecorder is the mock recorder for MockRawConn.
func (*MockRawConnMockRecorder) Close ¶
func (mr *MockRawConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRawConnMockRecorder) LocalAddr ¶
func (mr *MockRawConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockRawConnMockRecorder) Read ¶
func (mr *MockRawConnMockRecorder) Read(b interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockRawConnMockRecorder) RemoteAddr ¶
func (mr *MockRawConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockRawConnMockRecorder) SetDeadline ¶
func (mr *MockRawConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockRawConnMockRecorder) SetReadDeadline ¶
func (mr *MockRawConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockRawConnMockRecorder) SetWriteDeadline ¶
func (mr *MockRawConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockRawConnMockRecorder) Write ¶
func (mr *MockRawConnMockRecorder) Write(b interface{}) *gomock.Call
Write indicates an expected call of Write.