memory

package
v0.0.0-...-2068963 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Deregister

func (r *Registry) Deregister(ctx context.Context, instanceId, serviceName string) error

func (*Registry) Discover

func (r *Registry) Discover(ctx context.Context, serviceName string) ([]string, error)

func (*Registry) HealthCheck

func (r *Registry) HealthCheck(instanceId, serviceName string) error

func (*Registry) Register

func (r *Registry) Register(ctx context.Context, instanceId, serviceName, hostPort string) error

func (*Registry) ServiceAddresses

func (r *Registry) ServiceAddresses(ctx context.Context, serviceName string) ([]string, error)

Jump to

Keyboard shortcuts

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