Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶ added in v0.1.2
DefaultPath returns the default config location for the current OS.
Types ¶
type Config ¶ added in v0.1.2
type Config struct {
Auth struct {
BearerToken string `toml:"bearer_token"`
} `toml:"auth"`
HTTP struct {
UserAgent string `toml:"user_agent"`
Timeout Duration `toml:"timeout"`
Retry int `toml:"retry"`
} `toml:"http"`
Output struct {
Pretty bool `toml:"pretty"`
} `toml:"output"`
Stream struct {
BackoffMax Duration `toml:"backoff_max"`
} `toml:"stream"`
}
Config captures user configurable settings for ctw.
type Duration ¶ added in v0.1.2
Duration wraps time.Duration for TOML decoding (strings like "15s").
func (*Duration) UnmarshalText ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.