registry

package
v4.1.3-alpha1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	pb.UnimplementedRegistryServer
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(reg registry.Registry) *Handler

func (*Handler) Deregister

func (h *Handler) Deregister(ctx context.Context, item *pb.Item) (*pb.EmptyResponse, error)

func (*Handler) Get

func (h *Handler) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)

func (*Handler) List

func (h *Handler) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) NewLocker added in v4.0.4

func (h *Handler) NewLocker(server pb.Registry_NewLockerServer) error

func (*Handler) Register

func (h *Handler) Register(ctx context.Context, item *pb.Item) (*pb.EmptyResponse, error)

func (*Handler) Start

func (h *Handler) Start(ctx context.Context, item *pb.Item) (*pb.EmptyResponse, error)

func (*Handler) Stop

func (h *Handler) Stop(ctx context.Context, item *pb.Item) (*pb.EmptyResponse, error)

func (*Handler) Watch

func (h *Handler) Watch(req *pb.WatchRequest, stream pb.Registry_WatchServer) error

Jump to

Keyboard shortcuts

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