Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "httplisten"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InputConfig ¶
type InputConfig struct { config.InputConfig Address string `json:"address"` // host:port to listen on Path string `json:"path"` // The path to accept json HTTP POST requests on ServerCert string `json:"cert"` ServerKey string `json:"key"` CA string `json:"ca"` // for client certification RequireHeader []string `json:"require_header"` // Require this header to be present to accept the POST ("X-Access-Token: Potato") }
InputConfig holds the configuration json fields and internal objects
func DefaultInputConfig ¶
func DefaultInputConfig() InputConfig
DefaultInputConfig returns an InputConfig struct with default values
Click to show internal directories.
Click to hide internal directories.