consul

package
v0.0.0-...-d2cdecb Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 3 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(address, serviceName string) (*Registry, error)

func (*Registry) DeregisterService

func (r *Registry) DeregisterService(ctx context.Context, serviceID string) error

func (*Registry) GetService

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

func (*Registry) HealthCheck

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

func (*Registry) RegisterService

func (r *Registry) RegisterService(ctx context.Context, serviceName, serviceID, serviceAddress string, servicePort int, tags []string) error

Jump to

Keyboard shortcuts

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