Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderUUID = "Message-Uuid" ProviderName = "gtm" )
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 MarshalMessageFunc ¶
MarshalMessageFunc transforms the message into a HTTP request to be sent to the specified url.
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(url string, opts ...PublisherOption) *Publisher
type PublisherOption ¶
type PublisherOption func(*Publisher)
func PublisherWithClient ¶
func PublisherWithClient(v *http.Client) PublisherOption
func PublisherWithMarshalMessageFunc ¶
func PublisherWithMarshalMessageFunc(v MarshalMessageFunc) PublisherOption
Click to show internal directories.
Click to hide internal directories.