Documentation ¶
Index ¶
- Constants
- type BufferPool
- type Config
- type Listener
- type Sink
- func (s *Sink) Category() api.Category
- func (s *Sink) Config() interface{}
- func (s *Sink) Consume(batch api.Batch) api.Result
- func (s *Sink) Init(context api.Context) error
- func (s *Sink) SetCodec(c codec.Codec)
- func (s *Sink) Start() error
- func (s *Sink) Stop()
- func (s *Sink) String() string
- func (s *Sink) Type() api.Type
Constants ¶
View Source
const (
Type = "alertWebhook"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
func NewBufferPool ¶ added in v1.5.0
func NewBufferPool(s int) *BufferPool
func (*BufferPool) Get ¶
func (bp *BufferPool) Get() *bytes.Buffer
func (*BufferPool) Put ¶
func (bp *BufferPool) Put(b *bytes.Buffer)
type Config ¶
type Config struct { Addr string `yaml:"addr,omitempty"` logalert.AlertConfig `yaml:",inline"` }
type Listener ¶
Click to show internal directories.
Click to hide internal directories.