Documentation
¶
Index ¶
- Variables
- func ParseOptions(opts Options) (options, error)
- type ErrorRecord
- type Event
- type Fanout
- type Module
- func (m *Module) Close(ctx context.Context) error
- func (m *Module) Info() ModuleInfo
- func (m *Module) Name() string
- func (m *Module) ProcessLine(ctx context.Context, line string, source string, lineNumber int64) ([]*Event, []*ErrorRecord, error)
- func (m *Module) ScriptPath() string
- func (m *Module) Stats() Stats
- func (m *Module) Tag() string
- type ModuleInfo
- type Options
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHookTimeout = errors.New("logjs: js hook timeout")
View Source
var ErrNoRegister = errors.New("logjs: script did not call register()")
Functions ¶
func ParseOptions ¶
Types ¶
type ErrorRecord ¶
type Fanout ¶
type Fanout struct {
Modules []*Module
}
Fanout runs multiple independent JS modules against the same input stream. Each emitted event is tagged with the module's tag/name.
func LoadFanoutFromFiles ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func LoadFromFile ¶
func (*Module) Info ¶
func (m *Module) Info() ModuleInfo
func (*Module) ProcessLine ¶
func (*Module) ScriptPath ¶
type ModuleInfo ¶
Click to show internal directories.
Click to hide internal directories.