consul

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: 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, serviceName string) (*Registry, error)

func (*Registry) Deregister

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

func (*Registry) Discover

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

func (*Registry) HealthCheck

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

func (*Registry) Register

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

Jump to

Keyboard shortcuts

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