relay

package
v0.0.0-...-bd03ed3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package relay implements fan-out to remote relays.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DropRepeats     bool
	Host            string
	MaxConnsPerHost *int
	OnQueueFull     string
}

func (*Config) Validate

func (c *Config) Validate() error

type Pool

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

Pool represents a pool of relay connections.

func NewPool

func NewPool(configs map[string]*Config, series tsdb.Series) *Pool

NewPool creates a pool of relays connections.

func (*Pool) Broadcast

func (p *Pool) Broadcast()

Broadcast broadcasts received data points to all relays.

type Relay

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

func NewRelay

func NewRelay(name string, config *Config) (*Relay, error)

NewRelay returns a new relay.

func (*Relay) Submit

func (r *Relay) Submit(point *tsdb.Point)

Submit submits the given point to the relay. It does not block in network calls to the relay host. Not safe for concurrent use.

Jump to

Keyboard shortcuts

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