mock

package
v0.0.0-...-a56bf6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: PostgreSQL Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

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) Close

func (m *MockDBInstance) Close() error

Close mocks base method.

func (*MockDBInstance) EXPECT

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

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.

func (*MockDBInstance) Tls

func (m *MockDBInstance) Tls() *tls.Config

Tls 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

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) Close

func (m *MockRawConn) Close() error

Close mocks base method.

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.

func (*MockRawConn) Write

func (m *MockRawConn) Write(b []byte) (int, error)

Write 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL