Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrErrorResponse = errors.New("server responded with error status") ErrPublisherClosed = errors.New("publisher is closed") )
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(l *zap.Logger, host string, opts ...PublisherOption) *Publisher
type PublisherMarshalMessageFunc ¶ added in v0.1.28
PublisherMarshalMessageFunc transforms the message into a HTTP request to be sent to the specified url.
type PublisherOption ¶
type PublisherOption func(*Publisher)
func PublisherWithClient ¶
func PublisherWithClient(v *http.Client) PublisherOption
func PublisherWithMarshalMessageFunc ¶
func PublisherWithMarshalMessageFunc(v PublisherMarshalMessageFunc) PublisherOption
func PublisherWithPath ¶ added in v0.1.29
func PublisherWithPath(v string) PublisherOption
Click to show internal directories.
Click to hide internal directories.