Documentation
¶
Index ¶
Constants ¶
View Source
const ( KindFile = "file" KindHttp = "http" )
Variables ¶
View Source
var (
ErrInvalidInput = errors.New("invalid input config")
)
View Source
var (
ErrMissingChannel = errors.New("input cfg is missing channel")
)
Functions ¶
This section is empty.
Types ¶
type ChannelInput ¶
type ChannelInput struct {
Input <-chan *optimusv1.LogEvent
// contains filtered or unexported fields
}
func (*ChannelInput) Initialize ¶
func (ci *ChannelInput) Initialize(id string, broker pubsub.Broker) error
type FileInput ¶
type FileInput struct {
Path string `hcl:"path"`
DataDir string `hcl:"data_dir,optional"`
// contains filtered or unexported fields
}
func NewFileInput ¶
func (*FileInput) Initialize ¶
type Input ¶
type InputProcessor ¶
type InputProcessor interface {
Initialize(id string, broker pubsub.Broker) error
Process(context.Context) error
}
func HclImpl ¶
func HclImpl(kind string, ctx *hcl.EvalContext, body hcl.Body) (InputProcessor, hcl.Diagnostics)
Click to show internal directories.
Click to hide internal directories.