distributor

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MPL-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributionStrategy

type DistributionStrategy interface {
	ID(*api.CollectorIDRequest) (*api.CollectorIDReply, error)
	SetIDs([]int32) error
}

DistributionStrategy represents an algorithm used to decide which collector in a set should be used to monitor a given device.

type Type

type Type int

Type is an enum for specifying a distributor type.

const (
	// RoundRobin is the name of the round robin distribution strategy.
	RoundRobin Type = iota
)

func (*Type) MarshalJSON

func (t *Type) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Type) String

func (t *Type) String() string

func (*Type) UnmarshalJSON

func (t *Type) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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