We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c5a0b2 + b1c70b1 commit d6b075eCopy full SHA for d6b075e
examples/out_gstdout/out_gstdout.go
@@ -9,9 +9,18 @@ import (
9
"reflect"
10
)
11
12
+//export FLBPluginRegister
13
+// ctx (context) pointer to fluentbit context (state/ c code)
14
+func FLBPluginRegister(ctx unsafe.Pointer) int {
15
+ // roll call for the specifics of the plugin
16
+ return output.FLBPluginRegister(ctx, "gstdout", "Stdout GO!")
17
+}
18
+
19
//export FLBPluginInit
20
+// (fluentbit will call this)
21
22
func FLBPluginInit(ctx unsafe.Pointer) int {
- return output.FLBPluginRegister(ctx, "gstdout", "Stdout GO!")
23
+ return output.FLB_OK
24
}
25
26
//export FLBPluginFlush
0 commit comments