consul

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulClient

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

func NewClient

func NewClient(cfg *api.Config) (*ConsulClient, error)

func (*ConsulClient) Deregister

func (c *ConsulClient) Deregister()

func (*ConsulClient) GetService

func (c *ConsulClient) GetService(name string, clientIp string) (*models.ServiceNode, error)

func (*ConsulClient) Register

func (c *ConsulClient) Register(s *config.RegisterNode) error

func (*ConsulClient) Watch

func (c *ConsulClient) Watch(s *config.DiscoveryNode) error

Jump to

Keyboard shortcuts

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