registrarserver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyNoExist   = errors.New("key don't exist")
	ErrValueNoExist = errors.New("value don't exist")
)

Functions

This section is empty.

Types

type EtcdRegistrarServer

type EtcdRegistrarServer struct {
	pb.UnimplementedEtcdRegistrarServer
	Cli        *clientv3.Client
	ServiceNum uint64
	// contains filtered or unexported fields
}

func NewEtcdRegistrarServer

func NewEtcdRegistrarServer(addr string) *EtcdRegistrarServer

func (*EtcdRegistrarServer) Discover

func (*EtcdRegistrarServer) HeartbeatActive

func (s *EtcdRegistrarServer) HeartbeatActive(ctx context.Context, svc *pb.Service) (*pb.Reply, error)

func (*EtcdRegistrarServer) Logout

func (s *EtcdRegistrarServer) Logout(ctx context.Context, svc *pb.Service) (*pb.Reply, error)

func (*EtcdRegistrarServer) Register

func (*EtcdRegistrarServer) Subscribe

Jump to

Keyboard shortcuts

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