consul

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(address string, ip string, port int, serviceName string, healthCheck string) (err error)

Register service into consul

Types

type Service added in v0.0.15

type Service struct {
	ServiceId   string
	ServiceName string
	Address     string
	Port        int
	ServiceMeta map[string]string
}

func GetService added in v0.0.15

func GetService(address string, serviceId string) ([]Service, error)

Jump to

Keyboard shortcuts

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