eventsender

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 10 Imported by: 1

README

Event Sender

Sends events to an HTTP endpoint using POST request. Events are JSON encoded and potentially sent in batches when large amount of events is being sent.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEventDropped = errors.New("event was not sent")

Functions

This section is empty.

Types

type EventSender

type EventSender struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, endpoint string, queueSize int) (*EventSender, error)

func (*EventSender) SendEvent

func (e *EventSender) SendEvent(evt interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL