Documentation ¶
Overview ¶
Package http implements the remote.http component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ PollFrequency: 1 * time.Minute, PollTimeout: 10 * time.Second, Client: common_config.DefaultHTTPClientConfig, Method: http.MethodGet, }
DefaultArguments holds default settings for Arguments.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { URL string `river:"url,attr"` PollFrequency time.Duration `river:"poll_frequency,attr,optional"` PollTimeout time.Duration `river:"poll_timeout,attr,optional"` IsSecret bool `river:"is_secret,attr,optional"` Method string `river:"method,attr,optional"` Headers map[string]string `river:"headers,attr,optional"` Client common_config.HTTPClientConfig `river:"client,block,optional"` }
Arguments control the remote.http component.
func (*Arguments) SetToDefault ¶ added in v0.35.0
func (args *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implements the remote.http component.
func (*Component) CurrentHealth ¶
CurrentHealth returns the current health of the component.
type Exports ¶
type Exports struct {
Content rivertypes.OptionalSecret `river:"content,attr"`
}
Exports holds settings exported by remote.http.
Click to show internal directories.
Click to hide internal directories.