file

package
v0.0.0-...-b3a7459 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

A Backend is a ConfigBackend that uses a local file to determine what schedules to change. The file is read live, so changes to it will reflect immediately in the configs.

func NewBackend

func NewBackend(configFile string) (*Backend, error)

func (*Backend) BuildConfigResponse

func (backend *Backend) BuildConfigResponse(resource *res.Resource) (*pb.MetricConfigResponse, error)

BuildConfigResponse builds a MetricConfigResponse based on the config data and backend settings.

func (*Backend) Close

func (backend *Backend) Close() error

func (*Backend) GetWaitTime

func (backend *Backend) GetWaitTime() int32

func (*Backend) SetWaitTime

func (backend *Backend) SetWaitTime(waitTime int32)

Jump to

Keyboard shortcuts

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