common

package
v0.0.0-...-9267b80 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2016 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RefreshInterval time.Duration = time.Second * 1

Variables

This section is empty.

Functions

func GenerateUUID

func GenerateUUID() (string, error)

Types

type ProcessStatus

type ProcessStatus struct {
	sync.RWMutex

	CpuUsage float64
	MemRss   int64
	// contains filtered or unexported fields
}

func NewProcessStatus

func NewProcessStatus() *ProcessStatus

func (*ProcessStatus) StopUpdate

func (p *ProcessStatus) StopUpdate()

func (*ProcessStatus) Update

func (p *ProcessStatus) Update()

type RouterStart

type RouterStart struct {
	Id                               string   `json:"id"`
	Hosts                            []string `json:"hosts"`
	MinimumRegisterIntervalInSeconds int      `json:"minimumRegisterIntervalInSeconds"`
	PruneThresholdInSeconds          int      `json:"pruneThresholdInSeconds"`
}

type VcapComponent

type VcapComponent struct {
	Config     interface{}               `json:"-"`
	Varz       *health.Varz              `json:"-"`
	Healthz    *health.Healthz           `json:"-"`
	InfoRoutes map[string]json.Marshaler `json:"-"`
	Logger     lager.Logger              `json:"-"`
	// contains filtered or unexported fields
}

func (*VcapComponent) ListenAndServe

func (c *VcapComponent) ListenAndServe()

func (*VcapComponent) Register

func (c *VcapComponent) Register(mbusClient *nats.Conn) error

func (*VcapComponent) Start

func (c *VcapComponent) Start() error

func (*VcapComponent) Stop

func (c *VcapComponent) Stop()

func (*VcapComponent) UpdateVarz

func (c *VcapComponent) UpdateVarz()

Directories

Path Synopsis
fakes
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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