eventstore

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: AGPL-3.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 Config added in v0.15.0

type Config struct {
	MaxBatchSize      uint64
	MaxBatchTimeout   time.Duration
	RingBuffersFactor uint64
}

Config holds service configuration.

func ProvideConfig added in v0.15.0

func ProvideConfig() Config

ProvideConfig is a wire provider for service config.

type Service

type Service interface {
	StorePageView(context.Context, *event.PageView) error
	StoreCustom(context.Context, *event.Custom) error
}

Service define an event storage service.

func ProvideService added in v0.15.0

func ProvideService(
	cfg Config,
	ch clickhouse.Ch,
	logger zerolog.Logger,
	promRegistry *prometheus.Registry,
	teardownService teardown.Service,
) Service

ProvideService is a wire provider for a clickhouse based event storage service.

Jump to

Keyboard shortcuts

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