consul

package
v0.0.0-...-f111513 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConsul

func InitConsul()

Types

type ConsulRegister

type ConsulRegister struct {
	Address                        string
	Port                           int
	ConsulAddress                  string
	ConsulPort                     int
	Service                        string
	Tag                            []string
	DeregisterCriticalServiceAfter time.Duration
	Interval                       time.Duration
}

ConsulRegister consul service register

func (*ConsulRegister) NewConsulClient

func (r *ConsulRegister) NewConsulClient() *consulapi.Client

func (*ConsulRegister) Register

func (r *ConsulRegister) Register() error

Register register service

func (*ConsulRegister) RegisterHTTP

func (r *ConsulRegister) RegisterHTTP() *consulapi.Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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