http

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output added in v1.4.0

type Output struct {
	URL      string            `toml:"url"`
	Timeout  config.Duration   `toml:"timeout"`
	Method   string            `toml:"POST"`
	Username string            `toml:"username"`
	Password string            `toml:"password"`
	Headers  map[string]string `toml:"headers"`
	Gzip     bool              `toml:"gzip"`
	// contains filtered or unexported fields
}

Output for HTTP

func (*Output) Close added in v1.4.0

func (o *Output) Close() error

Close the output writer

func (*Output) Connect added in v1.4.0

func (o *Output) Connect() error

Connect activate the output writer

func (*Output) Description added in v1.4.0

func (o *Output) Description() string

Description returns description

func (*Output) SendEvent added in v1.4.0

func (o *Output) SendEvent(event events.Event) error

SendEvent send event to the Output

func (*Output) SetCondition added in v1.4.0

func (o *Output) SetCondition(condition conditional.Expression)

SetCondition set condition expression

func (*Output) SetSerializer added in v1.4.0

func (o *Output) SetSerializer(serializer serializers.Serializer)

SetSerializer set data serializer

Jump to

Keyboard shortcuts

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