transport

package
v0.0.0-...-27df0c0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrChanClosed = fmt.Errorf("channel closed")

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	*http.Client
	URL string
}

func (*HTTP) Request

func (c *HTTP) Request(ctx context.Context, req interface{}, resp interface{}) error

type RabbitMQ

type RabbitMQ struct {
	Channel    *amqp.Channel
	PublishTo  string
	PublishKey string
	Logger     logging.Logger

	ConsumeFrom string
	ConsumeKey  string
	// contains filtered or unexported fields
}

func (*RabbitMQ) ProcessEvents

func (mq *RabbitMQ) ProcessEvents() error

ProcessEvents reads and handles events from RabbitMQ.Channel. This method is blocking and returns only if transport initialization failed, or after RabbitMQ.Channel closed. Returned value is always non nil error.

func (*RabbitMQ) Request

func (mq *RabbitMQ) Request(ctx context.Context, req interface{},
	resp interface{}) error

Jump to

Keyboard shortcuts

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