identity

package
v0.0.9-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address interface {
	Port() int
	Host() string
	String() string
}

Address represents a host and port combinaison

type Identity

type Identity interface {
	ID() string
	WithID(string) Identity
	Private() Address
	Public() Address
}

Identity represents a Host network identity, with a unique ID, and two network identities: one private, and one public.

func LocalService

func LocalService() (Identity, error)

func NomadService

func NomadService(name string) (Identity, error)

NomadService returns the identity of a service running on Nomad, based on environment variables populated by Nomad

func StaticService

func StaticService(port int) Identity

Jump to

Keyboard shortcuts

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