utils

package
v0.0.0-...-b925956 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func BindRoutingKey

func BindRoutingKey(api, user, passwd, vhost, name, exchange, key string) error

func CreateQueue

func CreateQueue(api, user, passwd, vhost, name string) error

func FakeIdDecode

func FakeIdDecode(str string) int64

func FakeIdEncode

func FakeIdEncode(number int64) string

func NewReceiveConsumer

func NewReceiveConsumer(url string) (*receiveConsumer, error)

func RegisterQueue

func RegisterQueue(api, user, passwd, vhost, name, exchange, key string) error

Types

type ReceiveTool

type ReceiveTool struct {
	// contains filtered or unexported fields
}

func NewTool

func NewTool(url, exchange string, routeKeys []string) (*ReceiveTool, error)

func (*ReceiveTool) Publish

func (c *ReceiveTool) Publish(route, msg string)

Jump to

Keyboard shortcuts

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