registry

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package registry implements a service registry server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemoryServer

func NewInMemoryServer(ctx context.Context, ttl time.Duration) pb.RegistryServer

NewInMemoryServer constructs a new registry tracking service that operates in RAM as such, it is not usable for multi-node deployment where REDIS or other alternative should be used

Types

type Reporter

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

Reporter periodically submits a list of services available on this instance to the service registry

func (*Reporter) OnConfigChange

func (r *Reporter) OnConfigChange(ctx context.Context, cfg *config.Config)

OnConfigChange applies configuration changes to the reporter

Jump to

Keyboard shortcuts

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