services

package
v0.0.0-...-e45066c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finalizer

type Finalizer interface {
	Finalize(string)
}

type FinalizerWrap

type FinalizerWrap func(string)

func (FinalizerWrap) Finalize

func (c FinalizerWrap) Finalize(s string)

type Persistence

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

func NewPersistence

func NewPersistence(
	remoteLocationPrefix string,
	logger *zap.Logger,
) *Persistence

func (*Persistence) Finalize

func (p *Persistence) Finalize(filename string)

type Switcher

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

func NewSwitcher

func NewSwitcher(
	path string,
	flushSize int,
	bufferSize int,
	finalizer Finalizer,
	logger *zap.Logger,
) (*Switcher, error)

func (*Switcher) Close

func (s *Switcher) Close() error

func (*Switcher) Count

func (s *Switcher) Count() uint64

func (*Switcher) Insert

func (s *Switcher) Insert(event *sdk.Event)

type Writer

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

func NewWriter

func NewWriter(
	filename string,
	logger *zap.Logger,
) (*Writer, error)

func (*Writer) Close

func (s *Writer) Close() error

func (*Writer) Filename

func (s *Writer) Filename() string

func (*Writer) Insert

func (s *Writer) Insert(event *sdk.Event) error

Jump to

Keyboard shortcuts

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