Documentation
¶
Index ¶
Constants ¶
View Source
const CFG_FILE = "query-log.yaml"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Outputs []ConfigOutput
}
type ConfigOutput ¶
type ConfigOutput struct {
Dest string
Perm os.FileMode
Truncate bool
Rules []ConfigRule
}
type ConfigRule ¶
type ContainsRule ¶
type ContainsRule struct {
Term string
}
type Output ¶
type Output struct {
io.WriteCloser
Rules []*Rule
// contains filtered or unexported fields
}
type Plugin ¶
type Plugin struct {
plug.EventDispatcher
ConfigDirKey string
SitesRegisterKey string
// contains filtered or unexported fields
}
func (*Plugin) OnRegister ¶
func (*Plugin) RequireOptions ¶
type Rule ¶
type Rule struct {
ConfigRule
Term TermRule
}
Click to show internal directories.
Click to hide internal directories.