client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() (string, error)

GetLocalIP returns the preferred outbound ip address

func Register

func Register(options Options) error

Register a new service

Types

type Options

type Options struct {
	Name            string
	ManagerEndpoint string
	UpdateInterval  time.Duration
	Endpoint        string
	Value           func() string
	HttpClient      *http.Client
	Logger          *log.Logger
}

Options struct

Jump to

Keyboard shortcuts

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