bus_golang_publishers_registry_consul

package module
v0.0.0-...-6068441 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "bus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func New

func New(errorHandler func(error)) *Registry

func (*Registry) Register

func (c *Registry) Register(eventName bus.EventName, eventVersion bus.EventVersion, host string, port int) (func() error, error)

func (*Registry) Watch

func (c *Registry) Watch(eventName bus.EventName, eventVersion bus.EventVersion, handler func([]bus.PublisherEndpoint)) (func() error, error)

Jump to

Keyboard shortcuts

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