config

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package config provides configuration types and functions for Substation.

Any non-backwards compatible changes to the configuration types should be accompanied by a version bump.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input, output interface{}) error

Decode marshals and unmarshals an input interface into the output interface using the standard library's json package. This should be used when decoding JSON configurations (i.e., Config) in Substation interface factories.

Types

type AWS added in v1.0.0

type AWS struct {
	Region        string `json:"region"`
	AssumeRoleARN string `json:"assume_role_arn"`
}

type Buffer

type Buffer struct {
	Count    int    `json:"count"`
	Size     int    `json:"size"`
	Duration string `json:"duration"`
	Key      string `json:"key"`
}

Buffer should be used by any transform that supports buffering data with internal/aggregate.

type Metric added in v1.0.0

type Metric struct {
	Name        string            `json:"name"`
	Attributes  map[string]string `json:"attributes"`
	Destination config.Config     `json:"destination"`
}

type Object added in v1.0.0

type Object struct {
	Key    string `json:"key"`
	SetKey string `json:"set_key"`
}

type Request added in v1.0.0

type Request struct {
	Timeout string `json:"Timeout"`
}

type Retry added in v1.0.0

type Retry struct {
	Count int `json:"count"`
}

Jump to

Keyboard shortcuts

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