types

package
v0.0.0-...-ebb332d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByName

type ByName []*MasterDetails

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

type Cluster

type Cluster struct {
	Name         string `json:"name"`
	ExternalPort int    `json:"externalPort"`
}

type Consul

type Consul struct {
	Address  string    `json:"address"`
	Services []Service `json:"services"`
}

func (Consul) FindByClusterName

func (c Consul) FindByClusterName(name string) (Service, error)

type FlipperClient

type FlipperClient interface {
	InitialiseRunningState(state *MasterDetailsCollection)
	Orchestrate(switchEvent MasterSwitchedEvent)
}

type HAProxy

type HAProxy struct {
	TemplatePath  string `json:"templatePath,omitempty"`
	OutputPath    string `json:"outputPath,omitempty"`
	ReloadCommand string `json:"reloadCommand,omitempty"`
}

type MasterDetails

type MasterDetails struct {
	ExternalPort int    `json:"externalPort"`
	Name         string `json:"name"`
	Ip           string `json:"ip"`
	Port         int    `json:"port"`
}

type MasterDetailsCollection

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

func NewMasterDetailsCollection

func NewMasterDetailsCollection() MasterDetailsCollection

func (*MasterDetailsCollection) AddOrReplace

func (m *MasterDetailsCollection) AddOrReplace(master *MasterDetails)

func (*MasterDetailsCollection) IsEmpty

func (m *MasterDetailsCollection) IsEmpty() bool

func (*MasterDetailsCollection) Items

func (m *MasterDetailsCollection) Items() []*MasterDetails

type MasterSwitchedEvent

type MasterSwitchedEvent struct {
	Name          string
	OldMasterIp   string
	OldMasterPort int
	NewMasterIp   string
	NewMasterPort int
}

type Sentinel

type Sentinel struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

func (*Sentinel) GetLocation

func (s *Sentinel) GetLocation() string

type Service

type Service struct {
	Cluster    string   `json:"cluster"`
	Node       string   `json:"node"`
	Tags       []string `json:"tags"`
	Datacenter string   `json:"datacenter"`
}

Jump to

Keyboard shortcuts

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