queue

package
v0.0.0-...-4f663dc Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeQueue

func InitializeQueue(ctx context.Context, config *Config) error

func NewQueueClient

func NewQueueClient() *client

func Put

func Put(message interface{}) error

func Put2Topic

func Put2Topic(topic string, msg interface{}) error

func RegisterConsumeProcessor

func RegisterConsumeProcessor(processor func([]byte)) error

Types

type Config

type Config struct {
	Consumer *consumerConfig `yaml:"consumer"`
	Producer *producerConfig `yaml:"producer"`
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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