mock

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBrokerMockError

func NewBrokerMockError() rabbitmq.BrokerInterface

func NewBrokerMockOk

func NewBrokerMockOk() rabbitmq.BrokerInterface

func NewMockRedis added in v1.3.0

func NewMockRedis() *redismock.ClientMock

Types

type BrokerInterface added in v1.3.0

type BrokerInterface struct {
	mock.Mock
}

BrokerInterface is an autogenerated mock type for the BrokerInterface type

func (*BrokerInterface) Publish added in v1.3.0

func (_m *BrokerInterface) Publish(_a0 string, _a1 proto.Message, _a2 amqp.Table) error

Publish provides a mock function with given fields: _a0, _a1, _a2

func (*BrokerInterface) RegisterSubscriber added in v1.3.0

func (_m *BrokerInterface) RegisterSubscriber(_a0 string, _a1 interface{}) error

RegisterSubscriber provides a mock function with given fields: _a0, _a1

func (*BrokerInterface) SetExchangeName added in v1.3.0

func (_m *BrokerInterface) SetExchangeName(_a0 string)

SetExchangeName provides a mock function with given fields: _a0

func (*BrokerInterface) SetQueueOptsArgs added in v1.3.0

func (_m *BrokerInterface) SetQueueOptsArgs(args amqp.Table)

SetQueueOptsArgs provides a mock function with given fields: args

func (*BrokerInterface) Subscribe added in v1.3.0

func (_m *BrokerInterface) Subscribe(_a0 chan bool) error

Subscribe provides a mock function with given fields: _a0

type BrokerMockError

type BrokerMockError struct{}

func (*BrokerMockError) Publish

func (b *BrokerMockError) Publish(_ string, _ proto.Message, _ amqp.Table) error

func (*BrokerMockError) PublishJson added in v1.5.0

func (b *BrokerMockError) PublishJson(string, interface{}, amqp.Table, int64) error

func (*BrokerMockError) PublishProto added in v1.5.0

func (b *BrokerMockError) PublishProto(_ string, _ proto.Message, _ amqp.Table, _ int64) error

func (*BrokerMockError) RegisterSubscriber

func (b *BrokerMockError) RegisterSubscriber(topic string, fn interface{}) error

func (*BrokerMockError) SetExchangeName

func (b *BrokerMockError) SetExchangeName(name string)

func (*BrokerMockError) SetQueueOptsArgs added in v1.3.0

func (b *BrokerMockError) SetQueueOptsArgs(args amqp.Table)

func (*BrokerMockError) Subscribe

func (b *BrokerMockError) Subscribe(exit chan bool) error

type BrokerMockOk

type BrokerMockOk struct{}

func (*BrokerMockOk) Publish

func (b *BrokerMockOk) Publish(topic string, msg proto.Message, h amqp.Table) error

func (*BrokerMockOk) PublishJson added in v1.5.0

func (b *BrokerMockOk) PublishJson(_ string, _ interface{}, _ amqp.Table, _ int64) error

func (*BrokerMockOk) PublishProto added in v1.5.0

func (b *BrokerMockOk) PublishProto(string, proto.Message, amqp.Table, int64) error

func (*BrokerMockOk) RegisterSubscriber

func (b *BrokerMockOk) RegisterSubscriber(topic string, fn interface{}) error

func (*BrokerMockOk) SetExchangeName

func (b *BrokerMockOk) SetExchangeName(name string)

func (*BrokerMockOk) SetQueueOptsArgs added in v1.3.0

func (b *BrokerMockOk) SetQueueOptsArgs(args amqp.Table)

func (*BrokerMockOk) Subscribe

func (b *BrokerMockOk) Subscribe(exit chan bool) error

type CentrifugoInterface added in v1.3.0

type CentrifugoInterface struct {
	mock.Mock
}

CentrifugoInterface is an autogenerated mock type for the CentrifugoInterface type

func (*CentrifugoInterface) Publish added in v1.3.0

func (_m *CentrifugoInterface) Publish(_a0 context.Context, _a1 string, _a2 interface{}) error

Publish provides a mock function with given fields: _a0, _a1, _a2

func (*CentrifugoInterface) SendToAdminCentrifugo added in v1.3.0

func (_m *CentrifugoInterface) SendToAdminCentrifugo(channel string, order *billingpb.Order, message string) error

SendToAdminCentrifugo provides a mock function with given fields: channel, order, message

func (*CentrifugoInterface) SendToMerchantTestingCentrifugo added in v1.3.0

func (_m *CentrifugoInterface) SendToMerchantTestingCentrifugo(channel string, order *billingpb.Order, testCase string, request *common.Request, response *http.Response) error

SendToMerchantTestingCentrifugo provides a mock function with given fields: channel, order, testCase, request, response

func (*CentrifugoInterface) SendToUserCentrifugo added in v1.3.0

func (_m *CentrifugoInterface) SendToUserCentrifugo(channel string, order *billingpb.Order) error

SendToUserCentrifugo provides a mock function with given fields: channel, order

type HttpSender added in v1.3.0

type HttpSender struct {
	mock.Mock
}

HttpSender is an autogenerated mock type for the HttpSender type

func (*HttpSender) Send added in v1.3.0

func (_m *HttpSender) Send(url string, req interface{}, action string, secretKey string) (*common.Request, *http.Response, error)

Send provides a mock function with given fields: url, req, action, secretKey

type SlackSenderInterface added in v1.5.0

type SlackSenderInterface struct {
	mock.Mock
}

SlackSenderInterface is an autogenerated mock type for the SlackSenderInterface type

func (*SlackSenderInterface) SendMessage added in v1.5.0

func (_m *SlackSenderInterface) SendMessage(_a0 *slack.Message) error

SendMessage provides a mock function with given fields: _a0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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