Documentation ¶
Overview ¶
Package nats_mock is a generated GoMock package.
Index ¶
- type MockNatsContext
- func (m *MockNatsContext) CreateStream(streamName, subject string) error
- func (m *MockNatsContext) EXPECT() *MockNatsContextMockRecorder
- func (m *MockNatsContext) GetConn() *nats.Conn
- func (m *MockNatsContext) GetJetStreamContext() nats.JetStreamContext
- func (m *MockNatsContext) Subscribe(subject string, handler func(*nats.Msg) error) error
- type MockNatsContextMockRecorder
- func (mr *MockNatsContextMockRecorder) CreateStream(streamName, subject interface{}) *gomock.Call
- func (mr *MockNatsContextMockRecorder) GetConn() *gomock.Call
- func (mr *MockNatsContextMockRecorder) GetJetStreamContext() *gomock.Call
- func (mr *MockNatsContextMockRecorder) Subscribe(subject, handler interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNatsContext ¶
type MockNatsContext struct {
// contains filtered or unexported fields
}
MockNatsContext is a mock of NatsContext interface.
func NewMockNatsContext ¶
func NewMockNatsContext(ctrl *gomock.Controller) *MockNatsContext
NewMockNatsContext creates a new mock instance.
func (*MockNatsContext) CreateStream ¶
func (m *MockNatsContext) CreateStream(streamName, subject string) error
CreateStream mocks base method.
func (*MockNatsContext) EXPECT ¶
func (m *MockNatsContext) EXPECT() *MockNatsContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNatsContext) GetConn ¶
func (m *MockNatsContext) GetConn() *nats.Conn
GetConn mocks base method.
func (*MockNatsContext) GetJetStreamContext ¶
func (m *MockNatsContext) GetJetStreamContext() nats.JetStreamContext
GetJetStreamContext mocks base method.
type MockNatsContextMockRecorder ¶
type MockNatsContextMockRecorder struct {
// contains filtered or unexported fields
}
MockNatsContextMockRecorder is the mock recorder for MockNatsContext.
func (*MockNatsContextMockRecorder) CreateStream ¶
func (mr *MockNatsContextMockRecorder) CreateStream(streamName, subject interface{}) *gomock.Call
CreateStream indicates an expected call of CreateStream.
func (*MockNatsContextMockRecorder) GetConn ¶
func (mr *MockNatsContextMockRecorder) GetConn() *gomock.Call
GetConn indicates an expected call of GetConn.
func (*MockNatsContextMockRecorder) GetJetStreamContext ¶
func (mr *MockNatsContextMockRecorder) GetJetStreamContext() *gomock.Call
GetJetStreamContext indicates an expected call of GetJetStreamContext.
func (*MockNatsContextMockRecorder) Subscribe ¶
func (mr *MockNatsContextMockRecorder) Subscribe(subject, handler interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
Click to show internal directories.
Click to hide internal directories.