Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fluentbit-plugin-wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
fluentbit-plugin-wendelin
Commits
cee747bf
Commit
cee747bf
authored
Jan 18, 2018
by
Eteri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fluentbit: format code
parent
ca3c5752
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
44 deletions
+43
-44
out_http.go
out_http.go
+43
-44
No files found.
out_http.go
View file @
cee747bf
...
@@ -2,14 +2,13 @@ package main
...
@@ -2,14 +2,13 @@ package main
import
"github.com/fluent/fluent-bit-go/output"
import
"github.com/fluent/fluent-bit-go/output"
import
(
import
(
"fmt"
"unsafe"
"C"
"C"
"net/http"
"strconv"
"bytes"
"bytes"
"fmt"
"net/http"
"regexp"
"regexp"
"strconv"
"unsafe"
)
)
// configuration parameters
// configuration parameters
...
@@ -28,7 +27,7 @@ func FLBPluginRegister(ctx unsafe.Pointer) int {
...
@@ -28,7 +27,7 @@ func FLBPluginRegister(ctx unsafe.Pointer) int {
// ctx (context) pointer to fluentbit context (state/ c code)
// ctx (context) pointer to fluentbit context (state/ c code)
func
FLBPluginInit
(
ctx
unsafe
.
Pointer
)
int
{
func
FLBPluginInit
(
ctx
unsafe
.
Pointer
)
int
{
// Example to retrieve an optional configuration parameter
// Example to retrieve an optional configuration parameter
// param := output.FLBPluginConfigKey(ctx, "param")
// param := output.FLBPluginConfigKey(ctx, "param")
user
=
output
.
FLBPluginConfigKey
(
ctx
,
"User"
)
user
=
output
.
FLBPluginConfigKey
(
ctx
,
"User"
)
password
=
output
.
FLBPluginConfigKey
(
ctx
,
"Password"
)
password
=
output
.
FLBPluginConfigKey
(
ctx
,
"Password"
)
uri
=
output
.
FLBPluginConfigKey
(
ctx
,
"Uri"
)
uri
=
output
.
FLBPluginConfigKey
(
ctx
,
"Uri"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment