eventchannel

package
v1.200.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventChannel

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

func NewEventChannel

func NewEventChannel(sender Sender, clock clock.Clock, maxByteSize, maxEventCount int64, maxTime time.Duration) *EventChannel

func (*EventChannel) Close

func (c *EventChannel) Close()

func (*EventChannel) Push

func (c *EventChannel) Push(event []byte)

type Limit

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

type Metrics

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

type Sender

type Sender = func(payload []byte) error

func BuildEndpointSender

func BuildEndpointSender(client *http.Client, baseUrl string, module string) Sender

func NewHttpSender

func NewHttpSender(client *http.Client, endpoint string) Sender

Jump to

Keyboard shortcuts

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