Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorTag = "gogstash_input_http_error"
ErrorTag tag added to event when process module failed
View Source
const ModuleName = "http"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
func InitHandler ¶
InitHandler initialize the input plugin
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 }
InputConfig holds the configuration json fields and internal objects
func DefaultInputConfig ¶
func DefaultInputConfig() InputConfig
DefaultInputConfig returns an InputConfig struct with default values
func (*InputConfig) Request ¶
func (t *InputConfig) Request(logger *logrus.Logger, msgChan chan<- logevent.LogEvent)
func (*InputConfig) SendRequest ¶
func (t *InputConfig) SendRequest() (data string, err error)
Click to show internal directories.
Click to hide internal directories.