consul

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyService

func CopyService(service *servicediscovery.Service) *servicediscovery.Service

Types

type Client

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

func New

func New(opts ...discovery2.Option) (*Client, error)

func (*Client) Delete

func (s *Client) Delete(key string) error

func (*Client) Deregister

func (s *Client) Deregister() error

func (*Client) Get

func (s *Client) Get(key string) ([]byte, error)

func (*Client) List

func (s *Client) List(key string) (map[string][]byte, error)

func (*Client) Register

func (s *Client) Register() error

func (*Client) Set

func (s *Client) Set(key string, value string) error

func (*Client) SetTags

func (s *Client) SetTags(tags ...string)

SetTags set tags []string

type Watcher

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

func (*Watcher) Next

func (cw *Watcher) Next() (*servicediscovery.Result, error)

func (*Watcher) Stop

func (cw *Watcher) Stop()

Jump to

Keyboard shortcuts

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