consulx

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

package consulx is a tool for consul client api

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulClient

type ConsulClient struct {
	Servers                   []string // Servers is an array of server:port group
	TTL                       time.Duration
	DeregisterCriticalService bool
	Service                   *api.AgentServiceRegistration

	ServiceCheck func() error // check service health
	// contains filtered or unexported fields
}

ConsulClient is a tool for operating with consul server.

func (*ConsulClient) Run

func (client *ConsulClient) Run()

Run runs a consul client.

Jump to

Keyboard shortcuts

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