disc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEc

func GetEc() *clientv3.Client

func NewConn

func NewConn(serviceID string) (*grpc.ClientConn, error)

Types

type Node

type Node struct {
	ServiceID       string
	NodeID          string
	Endpoint        string
	EndpointManager endpoints.Manager
	Ec              *clientv3.Client
}

func GetServiceInstance

func GetServiceInstance(serviceID string, myaddr string) *Node

func (*Node) Deregister

func (i *Node) Deregister() error

func (*Node) DiscID

func (i *Node) DiscID() string

func (*Node) Register

func (i *Node) Register() error

Jump to

Keyboard shortcuts

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