annotation_api

package
v0.0.0-...-fe2ccbf Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2016 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	ApplicationProtocol string   `json:"applicationProtocol,omitempty"`
	Config              string   `json:"config,omitempty"`
	Domains             []string `json:"domains,omitempty"`
	Id                  string   `json:"id,omitempty"`
	ProxyPath           string   `json:"proxyPath,omitempty"`
}

type AnnotationApi

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

func NewAnnotationApi

func NewAnnotationApi(config *Config, zkCon *zk.Conn) *AnnotationApi

func (*AnnotationApi) Annotate

func (h *AnnotationApi) Annotate(services []*types.Service) error

Annotate implements the Annotator interface.

func (*AnnotationApi) Start

func (h *AnnotationApi) Start(refresh chan string, quit chan int, wg *sync.WaitGroup)

Start implements the Notifier interface.

type AnnotationListItem

type AnnotationListItem struct {
	Annotation *Annotation `json:"annotation"`
	Link       string      `json:"link"`
}

type Config

type Config struct {
	Enabled          bool
	ZookeeperServers string `envconfig:"zookeeper_servers"`
}

type Http

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

func NewHttp

func NewHttp(zkCon *zk.Conn) *Http

Jump to

Keyboard shortcuts

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