pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBuddyLabelPrefix = "buddy"
)

Variables

View Source
var GoogleConfig struct {
	Project           string
	Zone              string
	Region            string
	ExternalIPDNSZone string
	InternalIPDNSZone string
	DNSTTL            int64
	// additional zones not configured by ExternalIPDNSZone and InternalIPDNSZone
	DNSZones         string
	MultipleIPRecord bool
	BuddyLabelPrefix string
}

GoogleConfig provides configuration of google producer and consumer

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {

	// name name in the zone
	Hostname string `json:"hostname"`

	// Google Cloud DNS zone name to be used by the consumer for the record.
	DNSZone string `json:"dnsZone"`

	// IPv4 address.
	IP string `json:"ip"`

	// Compute engine zone
	ComputeZone string `json:"computeZone"`
}

Endpoint is used to pass data from the producer to the consumer.

type Observer

type Observer interface {
	Observe(float64)
}

type ObserverFunc

type ObserverFunc func(float64)

func (ObserverFunc) Observe

func (f ObserverFunc) Observe(value float64)

type Timer

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

func NewTimer

func NewTimer(o Observer) *Timer

func (*Timer) ObserveDuration

func (t *Timer) ObserveDuration()

Same as prometheus.Timer, but provides duration in millisecond

Jump to

Keyboard shortcuts

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