Documentation ¶
Index ¶
- Constants
- type Application
- type Logtric
- func (l *Logtric) LAPIDebug(state *lua.LState) int
- func (l *Logtric) LAPIError(state *lua.LState) int
- func (l *Logtric) LAPIFatal(state *lua.LState) int
- func (l *Logtric) LAPIGraphite(state *lua.LState) int
- func (l *Logtric) LAPIInfo(state *lua.LState) int
- func (l *Logtric) LAPITrace(state *lua.LState) int
- func (l *Logtric) LAPIWarn(state *lua.LState) int
- func (l *Logtric) Run(ctx context.Context, event reader.LogEvent) error
- type Parser
- type RE2
- type Script
Constants ¶
const Version = "1.0.0"
Version defines the version of the application
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application represents this application it stores all the application states and maintains the runtime
func NewApplication ¶
func NewApplication(conf *config.Configuration, readers ...reader.LogReader) (*Application, error)
NewApplication returns a new Application instance
type Logtric ¶
type Logtric struct {
// contains filtered or unexported fields
}
Logtric represents the logtrics instance configured in lua it stores the lua script states and provides runtime bindings to lua
func NewLogtric ¶
func NewLogtric(script string, conf *config.Configuration, state *lua.LState, table *lua.LTable) (*Logtric, error)
NewLogtric returns a new instance of Logtric
func (*Logtric) LAPIGraphite ¶
LAPIGraphite is represents the lua binding for graphite() api call
type RE2 ¶
type RE2 struct {
// contains filtered or unexported fields
}
RE2 represents RE2 expression parser
type Script ¶
type Script struct { Path string // contains filtered or unexported fields }
Script represents the logtrics lua script
func NewScript ¶
func NewScript(path string, conf *config.Configuration) (*Script, error)
NewScript returns a new Script instance which represents a lua script file
func (*Script) LAPILogtric ¶
LAPILogtric represents lua binding for logtric initialization
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package config is responsible for providing configuration
|
Package config is responsible for providing configuration |
Package graphite is responsible for pushing metrics to graphite
|
Package graphite is responsible for pushing metrics to graphite |
Package reader is responsible for reading log line from different data sources
|
Package reader is responsible for reading log line from different data sources |