registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.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 Option

type Option interface {
	// contains filtered or unexported methods
}

func WithListener

func WithListener(ln net.Listener) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithPromRegistry

func WithPromRegistry(promRegistry *prometheus.Registry) Option

type Service

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

Service manages the registry service, which provides a server for nodes to register and discovery the cluster.

func NewService

func NewService(conf *config.Config, opts ...Option) *Service

func (*Service) Cluster

func (s *Service) Cluster() *cluster.Cluster

func (*Service) GracefulStop

func (s *Service) GracefulStop()

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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