The highest tagged major version is
v2 .
Discover Packages
github.com/brexhq/substation
internal
config
package
Version:
v1.0.0-beta.2
Opens a new window with list of versions in this module.
Published: Dec 3, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
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.
type AWS struct {
Region string `json:"region"`
AssumeRoleARN string `json:"assume_role_arn"`
}
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 Object struct {
Key string `json:"key"`
SetKey string `json:"set_key"`
}
type Request struct {
Timeout string `json:"Timeout"`
}
type Retry struct {
Count int `json:"count"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.