nats_mock

package
v0.0.0-...-9cb16bd Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package nats_mock is a generated GoMock package.

Index

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

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.

func (*MockNatsContext) Subscribe

func (m *MockNatsContext) Subscribe(subject string, handler func(*nats.Msg) error) error

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

Jump to

Keyboard shortcuts

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