application

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatService

type HeartbeatService interface {
	Close()
}

HeartbeatService sends a heartbeat metric every 5 mins

func StartHeartbeatService

func StartHeartbeatService(sender senders.Sender, application Tags, source string, components ...string) HeartbeatService

StartHeartbeatService will create and start a new HeartbeatService

type Tags

type Tags struct {
	Application string
	Service     string
	Cluster     string
	Shard       string
	CustomTags  map[string]string
}

Encapsulates application details

func New

func New(application, service string) Tags

New creates a new application Tags with application and service name

func (Tags) Map

func (a Tags) Map() map[string]string

Map with all values

Jump to

Keyboard shortcuts

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