rpc

package
v0.0.0-...-c829a4c Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChanMap

func NewChanMap() *chanMap

func RandomString

func RandomString(l int) string

Types

type RpcClient

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

func NewRPCClient

func NewRPCClient(url, exchange string, cfg *amqp.Config) *RpcClient

func (*RpcClient) Call

func (c *RpcClient) Call(key string) (<-chan []byte, error)

Call sends an RPC message to the provited routing_key (key) with empty body. It expectes to receive a response on the response channel.

func (*RpcClient) Init

func (c *RpcClient) Init() error

Jump to

Keyboard shortcuts

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