consul

package
v0.0.0-...-cc98b66 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(addr string) (*Registry, error)

func (*Registry) Deregister

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

func (*Registry) Register

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

func (*Registry) ReportHealthyState

func (r *Registry) ReportHealthyState(instanceId string, _ 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