eventstore

package
v0.14.0-beta7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickhouseService

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

func (*ClickhouseService) StoreCustom added in v0.14.0

func (cs *ClickhouseService) StoreCustom(_ context.Context, ev *event.Custom) error

StoreCustom implements Service.

func (*ClickhouseService) StorePageView added in v0.14.0

func (cs *ClickhouseService) StorePageView(_ context.Context, ev *event.PageView) error

StorePageView implements Service.

type Service

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

Service define an event storage service.

func ProvideClickhouseService

func ProvideClickhouseService(
	ch clickhouse.Ch,
	logger zerolog.Logger,
	teardownService teardown.Service,
) Service

ProvideClickhouseService 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