efunc

package
v0.0.0-...-2aa8555 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c clientv3.Config, srvName string, node *ClientData) (*Client, error)

func (*Client) Deregister

func (n *Client) Deregister() error

func (*Client) Register

func (n *Client) Register() error

type ClientData

type ClientData struct {
	ServiceName string   `json:"service-name"`
	Funcs       []string `json:"callback"`
}

type Watcher

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

func NewWatcher

func NewWatcher(c clientv3.Config, srvName string) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close()

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context) clientv3.WatchChan

Jump to

Keyboard shortcuts

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