Documentation
¶
Index ¶
- func CamelCaseToUnderscore(str string) string
- func FLBPluginExit() int
- func FLBPluginFlush(data unsafe.Pointer, length C.int, tag *C.char) int
- func FLBPluginInit(ctx unsafe.Pointer) int
- func FLBPluginRegister(ctx unsafe.Pointer) int
- func GetProxyUrl(proxyUrl string) func(*http.Request) (*url.URL, error)
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCaseToUnderscore ¶
CamelCaseToUnderscore converts from camel case form to underscore separated form. Ex.: MyFunc => my_func From govalidator MIT Copyright (c) 2014 Alex Saskevich
func FLBPluginExit ¶
func FLBPluginExit() int
func FLBPluginInit ¶
func FLBPluginRegister ¶
Types ¶
type Plugin ¶
type Plugin interface { Environment(ctx unsafe.Pointer, key string) string Unregister(ctx unsafe.Pointer) GetRecord(dec *output.FLBDecoder) (ret int, ts interface{}, rec map[interface{}]interface{}) NewDecoder(data unsafe.Pointer, length int) *output.FLBDecoder Send(values []logging.Resource) error Exit(code int) }
Plugin interface for verifying all methods are available
Click to show internal directories.
Click to hide internal directories.