forward

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardInput

type ForwardInput struct {
	helper.InputOperator
	// contains filtered or unexported fields
}

ForwardInput is an operator that reads input from stdin

func (*ForwardInput) ServeHTTP

func (f *ForwardInput) ServeHTTP(wr http.ResponseWriter, req *http.Request)

func (*ForwardInput) Start

func (f *ForwardInput) Start() error

Start will start generating log entries.

func (*ForwardInput) Stop

func (f *ForwardInput) Stop() error

Stop will stop generating logs.

type ForwardInputConfig

type ForwardInputConfig struct {
	helper.InputConfig `yaml:",inline"`
	ListenAddress      string     `json:"listen_address" yaml:"listen_address"`
	TLS                *TLSConfig `json:"tls"            yaml:"tls"`
}

ForwardInputConfig is the configuration of a forward input operator

func NewForwardInputConfig

func NewForwardInputConfig(operatorID string) *ForwardInputConfig

NewForwardInputConfig creates a new stdin input config with default values

func (*ForwardInputConfig) Build

Build will build a forward input operator.

type TLSConfig

type TLSConfig struct {
	CertFile string `json:"cert_file" yaml:"cert_file"`
	KeyFile  string `json:"key_file"  yaml:"key_file"`
}

TLSConfig is a configuration struct for forward input TLS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL