http

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpSink

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

func NewHttpSink

func NewHttpSink(url string, formatter hermod.Formatter, headers map[string]string) *HttpSink

func (*HttpSink) Close

func (s *HttpSink) Close() error

func (*HttpSink) Ping

func (s *HttpSink) Ping(ctx context.Context) error

func (*HttpSink) SetCompressor

func (s *HttpSink) SetCompressor(comp compression.Compressor)

func (*HttpSink) SetPingMethod

func (s *HttpSink) SetPingMethod(method string)

func (*HttpSink) SetTimeout

func (s *HttpSink) SetTimeout(d time.Duration)

SetTimeout bounds every exchange — dial, write, response — replacing the default. Zero disables the bound, which is what it was before this existed: a sink that blocks forever on a server that accepts and never answers.

func (*HttpSink) Write

func (s *HttpSink) Write(ctx context.Context, msg hermod.Message) error

func (*HttpSink) WriteBatch

func (s *HttpSink) WriteBatch(ctx context.Context, msgs []hermod.Message) error

Jump to

Keyboard shortcuts

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