consul

package
v0.0.0-...-18bf7b2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service service agnet of consul

func RegisterService

func RegisterService(consulAddress string, serviceName string, serviceIP string, servicePort int, tags []string) (*Service, error)

RegisterService register the service at consul

func (*Service) UnregisterService

func (service *Service) UnregisterService() error

UnregisterService unregister service from consul

Jump to

Keyboard shortcuts

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