collectorregistrar

package
v0.0.0-...-0848747 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2015 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AnnounceComponentMessageSubject = "vcap.component.announce"
View Source
const DiscoverComponentMessageSubject = "vcap.component.discover"

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnounceComponentMessage

type AnnounceComponentMessage struct {
	Type        string   `json:"type"`
	Index       uint     `json:"index"`
	Host        string   `json:"host"`
	UUID        string   `json:"uuid"`
	Credentials []string `json:"credentials"`
}

func NewAnnounceComponentMessage

func NewAnnounceComponentMessage(cfc cfcomponent.Component) (message *AnnounceComponentMessage)

type ClientProvider

type ClientProvider func(*gosteno.Logger, *cfcomponent.Config) (yagnats.NATSConn, error)

type CollectorRegistrar

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

func NewCollectorRegistrar

func NewCollectorRegistrar(clientProvider ClientProvider, cfc cfcomponent.Component, interval time.Duration, config *cfcomponent.Config) *CollectorRegistrar

func (*CollectorRegistrar) Run

func (registrar *CollectorRegistrar) Run()

func (*CollectorRegistrar) Stop

func (registrar *CollectorRegistrar) Stop()

Jump to

Keyboard shortcuts

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