mq_client

package
v0.0.0-...-08e6bf2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqMock

type MqMock struct {
	Ref string
}

func (*MqMock) Init

func (mq *MqMock) Init(url string) error

func (*MqMock) Send

func (mq *MqMock) Send(r *http.Request) (string, error)

type RabbitMq

type RabbitMq struct {
	Ref     rndTokenInterface
	Connect *my_amqp.Connection
	Channel *my_amqp.Channel

	Queue   string `json:"queue"`
	Message string `json:"message"`
	RbMsg   rabbitMqMsg
	// contains filtered or unexported fields
}

func (*RabbitMq) Init

func (mq *RabbitMq) Init(url string) error

func (*RabbitMq) Send

func (mq *RabbitMq) Send(r *http.Request) (string, error)

type RndToken

type RndToken struct {
	Token string
}

func (*RndToken) TokenGenerator

func (rt *RndToken) TokenGenerator() string

Jump to

Keyboard shortcuts

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