Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var DiscardResponseWriter = discardResponseWriter{}
Functions ¶
This section is empty.
Types ¶
type BodyRequest ¶
func (*BodyRequest) BuildRequest ¶
func (r *BodyRequest) BuildRequest(ctx context.Context) *http.Request
func (BodyRequest) Marshal ¶
func (r BodyRequest) Marshal() ([]byte, error)
func (*BodyRequest) Unmarshal ¶
func (r *BodyRequest) Unmarshal(b []byte) error
type Config ¶
type Config struct {
HTTPRelays []HTTPConfig `toml:"http"`
}
func LoadConfigFile ¶
LoadConfigFile parses the specified file into a Config object
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP is a relay for HTTP clickhouse writes
type HTTPConfig ¶
type HTTPConfig struct { // Name identifies the HTTP relay Name string `toml:"name"` // Addr should be set to the desired listening host:port Addr string `toml:"bind-addr"` // Set certificate in order to handle HTTPS requests SSLCombinedPem string `toml:"ssl-combined-pem"` // Persistent buffer path BufferDir string `toml:"buffer-dir"` // Outputs is a list of backed servers where writes will be forwarded Outputs []HTTPOutputConfig `toml:"output"` }
type HTTPOutputConfig ¶
type HTTPOutputConfig struct { // Name of the backend server Name string `toml:"name"` // Location should be set to the URL of the backend server's write endpoint Location string `toml:"location"` // Timeout sets a per-backend timeout for write requests. (Default 10s) // The format used is the same seen in time.ParseDuration Timeout string `toml:"timeout"` // Skip TLS verification in order to use self signed certificate. // WARNING: It's insecure. Use it only for developing and don't use in production. SkipTLSVerification bool `toml:"skip-tls-verification"` }
type TCPConfig ¶
type TCPConfig struct { // Name identifies the TCP relay Name string `toml:"name"` // Addr is where the TCP relay will listen for packets Addr string `toml:"bind-addr"` // Outputs is a list of backend servers where writes will be forwarded Outputs []TCPOutputConfig `toml:"output"` }
type TCPOutputConfig ¶
Click to show internal directories.
Click to hide internal directories.