Documentation
¶
Index ¶
- type HttpSink
- func (s *HttpSink) Close() error
- func (s *HttpSink) Ping(ctx context.Context) error
- func (s *HttpSink) SetCompressor(comp compression.Compressor)
- func (s *HttpSink) SetPingMethod(method string)
- func (s *HttpSink) SetTimeout(d time.Duration)
- func (s *HttpSink) Write(ctx context.Context, msg hermod.Message) error
- func (s *HttpSink) WriteBatch(ctx context.Context, msgs []hermod.Message) error
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 (*HttpSink) SetCompressor ¶
func (s *HttpSink) SetCompressor(comp compression.Compressor)
func (*HttpSink) SetPingMethod ¶
func (*HttpSink) SetTimeout ¶
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.
Click to show internal directories.
Click to hide internal directories.