8000 with custom marshaller by makasim · Pull Request #30 · lestrrat-go/fluent-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

with custom marshaller #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions buffered.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ import (
// NewBuffered creates a new Buffered client.
// Options may be one of the following:
//
// * fluent.WithAddress
// * fluent.WithBufferLimit
// * fluent.WithDialTimeout
// * fluent.WithJSONMarshaler
// * fluent.WithMaxConnAttempts
// * fluent.WithMsgpackMarshaler
// * fluent.WithNetwork
// * fluent.WithTagPrefix
// * fluent.WithWriteThreshold
// * fluent.WithWriteQueueSize
// - fluent.WithAddress
// - fluent.WithBufferLimit
// - fluent.WithDialTimeout
// - fluent.WithJSONMarshaler
// - fluent.WithMaxConnAttempts
// - fluent.WithMsgpackMarshaler
// - fluent.WithMarshaller
// - fluent.WithNetwork
// - fluent.WithTagPrefix
// - fluent.WithWriteThreshold
// - fluent.WithWriteQueueSize
//
// Please see their respective documentation for details.
func NewBuffered(options ...Option) (client *Buffered, err error) {
Expand Down
6 changes: 6 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ func WithJSONMarshaler() Option {
return option.New(identMarshaler{}, marshalFunc(jsonMarshal))
}

// WithMarshaller specifies a custom marshaling to be used when
// sending messages to fluentd. Used for `fluent.New`
func WithMarshaller(m marshaler) Option {
return option.New(identMarshaler{}, m)
}

// WithMsgpackMarshaler specifies msgpack marshaling to be used when
// sending messages to fluentd. Used in `fluent.New`
func WithMsgpackMarshaler() Option {
Expand Down
Loading
0