consul_publishers_registry

package
v0.0.0-...-07ee25d Latest Latest
Warning

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

Go to latest
Published: Jan 31, 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 Client

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

func New

func New(errorHandler func(error)) *Client

func (*Client) Register

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

func (*Client) Watch

func (c *Client) 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