mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: GPL-3.0 Imports: 8 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 NewCentrifugoTransportStatusOk

func NewCentrifugoTransportStatusOk() *http.Client

Types

type BrokerMockError

type BrokerMockError struct{}

func (*BrokerMockError) Publish

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

func (*BrokerMockError) RegisterSubscriber

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

func (*BrokerMockError) SetExchangeName

func (b *BrokerMockError) SetExchangeName(name string)

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

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

func (*BrokerMockOk) SetExchangeName

func (b *BrokerMockOk) SetExchangeName(name string)

func (*BrokerMockOk) Subscribe

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

type CentrifugoTransportStatusOk

type CentrifugoTransportStatusOk struct {
	Transport http.RoundTripper
	Msg       map[string]interface{}
}

func (*CentrifugoTransportStatusOk) RoundTrip

func (h *CentrifugoTransportStatusOk) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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