Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAppOptions = AppOptions{
AppHost: "localhost",
}
DefaultAppOptions Default app options
View Source
var DefaultElkOptions = ElkOptions{ ElkDsn: "http://localhost:9200", ElkIndex: "org.module.app.%s", ElkSync: true, ElkSniff: false, ElkHealth: true, ElkHealthInterval: time.Second * 30, ElkHealthTimeout: time.Second * 3, }
DefaultElkOptions Default elastic options
View Source
var DefaultOptions = Options{ DefaultAppOptions, DefaultElkOptions, }
DefaultOptions Default options
Functions ¶
Types ¶
type AppOptions ¶
type AppOptions struct { AppHost string // contains filtered or unexported fields }
AppOptions Application options
type ElkOptions ¶
type ElkOptions struct { ElkDsn string ElkIndex string ElkSync bool ElkSniff bool ElkHealth bool ElkHealthInterval time.Duration ElkHealthTimeout time.Duration // contains filtered or unexported fields }
ElkOptions Elastic options
type OptionsFn ¶
OptionsFn Options function type
func SetDiscardOutput ¶
func SetDiscardOutput() OptionsFn
SetDiscardOutput Defines if should discard output
func SetTestingMode ¶
func SetTestingMode() OptionsFn
SetTestingMode Testing mode discards the outputs and doesn't sync elk
Click to show internal directories.
Click to hide internal directories.