plugin

package
v0.0.0-...-88ac095 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCritical

func NewCritical(api container.Supervisor, logger *log.Logger, labels ...string) container.Monitor

Creates monitor that will shutdown all supervisor when critical runnable stopped

Types

type Consul

type Consul interface {
	io.Closer
	container.Monitor
}

func NewConsul

func NewConsul(client *api.Client, TTL time.Duration, deReg time.Duration, logger *log.Logger, labels []ConsulRegistration) Consul

Creates new Consul agent that will register and deregister specified services

type ConsulRegistration

type ConsulRegistration struct {
	// Keep service registered even if stopped
	Permanent bool `json:"permanent,omitempty" yaml:"permanent,omitempty" ini:"permanent,omitempty"`
	// Name of service
	Label string `json:"label" yaml:"label" ini:"label"`
}

Define options for consul registration

Jump to

Keyboard shortcuts

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