registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeItem

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

type Registry

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

func NewRegistry

func NewRegistry(nc *nats.Conn, expire int64) (*Registry, error)

NewService create a service instance

func (*Registry) Close

func (s *Registry) Close()

func (*Registry) Listen

func (s *Registry) Listen(
	handleNodeAction func(action discovery.Action, node discovery.Node) (bool, error),
	handleGetNodes func(service string, params map[string]interface{}) ([]discovery.Node, error)) error

Jump to

Keyboard shortcuts

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