nats

package
v0.0.0-...-c460348 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

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

func NewEndpoints

func NewEndpoints(logger log.Logger, serverID string, conn *nats.Conn) *Endpoints

func (*Endpoints) AddCallback

func (e *Endpoints) AddCallback(callback EndpointsCallback)

func (*Endpoints) PublishEndpoints

func (e *Endpoints) PublishEndpoints(version int64, nodes []api.Node) error

func (*Endpoints) Subscribe

func (e *Endpoints) Subscribe() error

func (*Endpoints) Unsubscribe

func (e *Endpoints) Unsubscribe() error

type EndpointsCallback

type EndpointsCallback func(version int64, nodes []api.Node)

type Routes

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

func NewRoutes

func NewRoutes(logger log.Logger, serverID string, conn *nats.Conn) *Routes

func (*Routes) AddCallback

func (r *Routes) AddCallback(callback RoutesCallback)

func (*Routes) PublishRoutes

func (r *Routes) PublishRoutes(version int64, services []api.Service) error

func (*Routes) Subscribe

func (r *Routes) Subscribe() error

func (*Routes) Unsubscribe

func (r *Routes) Unsubscribe() error

type RoutesCallback

type RoutesCallback func(version int64, services []api.Service)

Jump to

Keyboard shortcuts

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