lib

package
v0.0.0-...-92988cc Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider              string
	Path                  string
	Address               string
	Payload               string
	Token                 string
	PassingOnly           bool
	ReplaceExistingChecks bool
	InsecureSkipVerify    bool
}

type ConsulDiscovery

type ConsulDiscovery struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*ConsulDiscovery) Close

func (s *ConsulDiscovery) Close() error

Close stops underlying goroutines, if there is any. It should be a blocking call.

func (*ConsulDiscovery) Deregister

func (s *ConsulDiscovery) Deregister() error

Deregister removes this node from a service discovery directory.

func (*ConsulDiscovery) DiscoverPeers

func (s *ConsulDiscovery) DiscoverPeers() ([]string, error)

DiscoverPeers returns a list of known Olric nodes.

func (*ConsulDiscovery) Initialize

func (s *ConsulDiscovery) Initialize() error

Initialize initializes the plugin: registers some internal data structures, clients etc.

func (*ConsulDiscovery) Register

func (s *ConsulDiscovery) Register() error

Register registers this node to a service discovery directory.

func (*ConsulDiscovery) SetConfig

func (s *ConsulDiscovery) SetConfig(c map[string]interface{}) error

SetConfig registers plugin configuration

func (*ConsulDiscovery) SetLogger

func (s *ConsulDiscovery) SetLogger(l *log.Logger)

SetLogger sets an appropriate

Jump to

Keyboard shortcuts

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