Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ Port: 80, RefreshInterval: time.Minute, }
Functions ¶
Types ¶
type Arguments ¶
type Arguments struct { RefreshInterval time.Duration `river:"refresh_interval,attr,optional"` Port int `river:"port,attr,optional"` BearerToken rivertypes.Secret `river:"bearer_token,attr,optional"` BearerTokenFile string `river:"bearer_token_file,attr,optional"` ProxyURL config.URL `river:"proxy_url,attr,optional"` FollowRedirects bool `river:"follow_redirects,attr,optional"` EnableHTTP2 bool `river:"enable_http2,attr,optional"` }
func (*Arguments) Convert ¶
func (a *Arguments) Convert() *prom_discovery.SDConfig
func (*Arguments) SetToDefault ¶ added in v0.35.0
func (a *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
Click to show internal directories.
Click to hide internal directories.