messaging

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package messaging provides a broker wrapper for go-micro broker.

The messaging package's structures are self-initialized by fx and bootstrapper. Fields are populated via yaml values or env variables. Env variables overwrite yaml configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerWithOptions

type BrokerWithOptions struct {
	Broker     broker.Broker
	SubOptions broker.SubscribeOptions
}

A BrokerWithOptions embeds go-micro compatible broker and encapsulates subscriber options for fine-grained configuration.

func NewBroker

func NewBroker(registry registry.Registry, config *config.BrokerConfig) BrokerWithOptions

A BrokerWrapper constructor. Called automatically by fx and bootstrapper with config path provided via cli.

Returns a wrapper broker instance used to initialize a go-micro broker.

Jump to

Keyboard shortcuts

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