rules

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 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 HTTPOutput

type HTTPOutput struct {
	Method         string
	Endpoint       string
	Headers        map[string]string
	Params         map[string]string
	Authentication struct {
		Header map[string]string
	}
}

type HTTPSink

type HTTPSink struct {
	// contains filtered or unexported fields
}

func (*HTTPSink) Send

func (s *HTTPSink) Send(data []byte)

func (*HTTPSink) Start

func (s *HTTPSink) Start()

type RuleConfig

type RuleConfig struct {
	// contains filtered or unexported fields
}

func NewRuleConfig

func NewRuleConfig(log logger.Logger, ruleConfigPath string) (*RuleConfig, error)

func (*RuleConfig) Send

func (c *RuleConfig) Send(record *record.LogRecord) error

type Rules

type Rules struct {
	Admin struct {
		Namespaces         []string
		DeadLetters        bool `yaml:"dead-letters"`
		ErrorOnDeadLetters bool `yaml:"error-on-dead-letters"`
		Output             struct {
			HTTP HTTPOutput `yaml:"http"`
		}
	}
	Output []struct {
		Namespace string
		HTTP      HTTPOutput `yaml:"http"`
	}
}

Jump to

Keyboard shortcuts

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