Documentation ¶
Index ¶
- Constants
- type Config
- 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 = "dev"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // in general, we use codec.PrintEvents instead. PrintEvents bool `yaml:"printEvents,omitempty" default:"false"` // Within this period, only one log event is printed for troubleshooting. PrintEventsInterval time.Duration `yaml:"printEventsInterval,omitempty"` PrintMetrics bool `yaml:"printMetrics,omitempty"` MetricsInterval time.Duration `yaml:"printMetricsInterval,omitempty" default:"1s"` // resultStatus can be used to simulate failure, drop ResultStatus string `yaml:"resultStatus,omitempty" default:"success"` }
Click to show internal directories.
Click to hide internal directories.