collection

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AckFunc

type AckFunc func(err error)

type ChannelCollector

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

func (*ChannelCollector) Collect

func (c *ChannelCollector) Collect(ctx context.Context, req *CollectRequest) error

type CollectRequest

type CollectRequest struct {
	ConnectionIdentifier identification.Identifier
	TimeConsumed         time.Time
	TimePushed           time.Time
	AckFunc
	*pb.SendEventRequest
}

type Collector

type Collector interface {
	Collect(ctx context.Context, req *CollectRequest) error
}

func NewChannelCollector

func NewChannelCollector(c chan CollectRequest) Collector

type MockCollector

type MockCollector struct {
	mock.Mock
}

func (*MockCollector) Collect

func (m *MockCollector) Collect(ctx context.Context, req *CollectRequest) error

Jump to

Keyboard shortcuts

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