Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "http"
)
Variables ¶
This section is empty.
Functions ¶
func InitHandler ¶
func InitHandler(confraw *config.ConfigRaw) (retconf config.TypeInputConfig, err error)
Types ¶
type InputConfig ¶
type InputConfig struct { config.InputConfig Method string `json:"method,omitempty"` // one of ["HEAD", "GET"] Url string `json:"url"` Interval int `json:"interval,omitempty"` // contains filtered or unexported fields }
func DefaultInputConfig ¶
func DefaultInputConfig() InputConfig
func (*InputConfig) Request ¶
func (t *InputConfig) Request(logger *logrus.Logger, inchan config.InChan)
func (*InputConfig) SendRequest ¶
func (self *InputConfig) SendRequest() (data string, err error)
func (*InputConfig) Start ¶
func (t *InputConfig) Start()
Click to show internal directories.
Click to hide internal directories.