rabbitmq

package
v0.0.0-...-d36ff20 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeNamePB

func TypeNamePB(it proto.Message) string

Types

type Config

type Config struct {
	Host        string `toml:"host"`
	Port        uint16 `toml:"port"`
	VirtualHost string `toml:"virtual-host"`
	User        string `toml:"user"`
	Password    string `toml:"password"`
}

func (*Config) Consume

func (p *Config) Consume(ctx context.Context, name string, queue string, consumer Consumer) error

func (*Config) Url

func (p *Config) Url() string

type Consumer

type Consumer interface {
	Handle(id string, content_type string, body []byte) error
}

Jump to

Keyboard shortcuts

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