lib

package
v0.0.0-...-4fc3eb7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Accounts []*account `json:"accounts"`
}

func NewConfig

func NewConfig(filePath string) (*Config, error)

type DispatchOptions

type DispatchOptions struct {
	Config    *Config
	Ctx       context.Context
	Interval  time.Duration
	Namespace string
}

type Dispatcher

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

func NewDispatcher

func NewDispatcher(opts *DispatchOptions) *Dispatcher

func (*Dispatcher) Poll

func (d *Dispatcher) Poll() error

type Metric

type Metric struct {
	Cluster      *string
	ServiceName  *string
	DesiredCount *int64
	PendingCount *int64
	RunningCount *int64
}

func MetricsFromServices

func MetricsFromServices(cluster *string, services []*ecs.Service) []*Metric

type Worker

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

Jump to

Keyboard shortcuts

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