v1

package
v0.0.0-...-b690631 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxEventCount = 1024
	DefaultTTL    = 60 * 24 * time.Hour
)

Variables

This section is empty.

Functions

func New

func New(cfg Configuration) (svc.Handler, error)

Types

type Configuration

func NewConfiguration

func NewConfiguration() Configuration

func (Configuration) Validate

func (c Configuration) Validate() error

func (Configuration) With

type ConfigurationAsync

type ConfigurationAsync struct {
	Enabled bool
	Size    int
	Retry   ConfigurationRetry
}

func (ConfigurationAsync) Validate

func (c ConfigurationAsync) Validate() error

type ConfigurationRetry

type ConfigurationRetry struct {
	Timeout time.Duration
	Delay   time.Duration
}

func (ConfigurationRetry) Validate

func (c ConfigurationRetry) Validate() error

type RemoteStore

type RemoteStore[IN proto.Message] interface {
	Init(ctx context.Context) error

	Emit(ctx context.Context, events ...IN) error
}

func NewArangoRemoteStore

func NewArangoRemoteStore[IN proto.Message](client cache.Object[arangodb.Collection]) RemoteStore[IN]

func WithAsync

func WithAsync[IN proto.Message, H RemoteStore[IN]](in H, size int, timeout time.Duration, delay time.Duration) RemoteStore[IN]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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