consul

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.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 Consul

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

func (*Consul) CreateService

func (c *Consul) CreateService(node, serviceID, address, probeAddress string, intervalDuration, timeoutDuration int, headers map[string][]string) error

func (*Consul) DeregService

func (c *Consul) DeregService(serviceID string) error

type IConsul

type IConsul interface {
	CreateService(node, serviceID, address, probeAddress string, intervalDuration, timeoutDuration int, headers map[string][]string) error
	DeregService(serviceID string) error
}
var ConsulInstance IConsul = nil

func CreateConsulProvider

func CreateConsulProvider(consulAddress, scheme, datacenter string) (IConsul, error)

CreateConsulProvider creates Consul Instance

func GetConsul

func GetConsul(consulAddress, scheme, datacenter string) (IConsul, error)

GetConsul returns Consul Instance

Jump to

Keyboard shortcuts

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