tessend

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// ID is the ID of the sensu-enterprise-go cluster.
	ID string `json:"id"`

	// Version is the Sensu release version (e.g. "1.4.1").
	Version string `json:"version"`

	// License is the Cluster's license.
	License interface{} `json:"license"`
}

Cluster is the cluster information sent to tessen

type Config

type Config struct {
	Store    store.Store
	RingPool *ringv2.Pool
	Client   *clientv3.Client
	Bus      messaging.MessageBus
}

Config configures Tessend.

type Data

type Data struct {
	// General information about the Sensu installation.
	Cluster Cluster `json:"cluster"`

	// Metric data.
	Metrics corev2.Metrics `json:"metrics"`
}

Data is the payload sent to tessen

type LicenseFile

type LicenseFile struct {
	// License contains the actual license
	License interface{} `json:"license"`
}

LicenseFile represents the content of a license file

type Option

type Option func(*Tessend) error

Option is a functional option.

type Tessend

type Tessend struct {
	AllowOptOut bool
	// contains filtered or unexported fields
}

Tessend is the tessen daemon.

func New

func New(c Config, opts ...Option) (*Tessend, error)

New creates a new TessenD.

func (*Tessend) Err

func (t *Tessend) Err() <-chan error

Err returns a channel on which to listen for terminal errors.

func (*Tessend) Name

func (t *Tessend) Name() string

Name returns the daemon name.

func (*Tessend) Receiver

func (t *Tessend) Receiver() chan<- interface{}

Receiver returns the tessen receiver channel.

func (*Tessend) Start

func (t *Tessend) Start() error

Start the Tessen daemon.

func (*Tessend) Stop

func (t *Tessend) Stop() error

Stop the Tessen daemon.

type Wrapper

type Wrapper struct {
	Value LicenseFile `json:"spec"`
}

Wrapper wraps the LicenseFile for unmarshalling

Jump to

Keyboard shortcuts

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