storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidStorageUri  = errors.New("invalid storage uri")
	ErrUnsupportedBackend = errors.New("unsupported storage backend")
	ErrRecvChanNotSet     = errors.New("receive channel not set")
	ErrUnsupportedMsgType = errors.New("unsupported message type")
)

Functions

This section is empty.

Types

type StorageBackend

type StorageBackend struct {
	Store eventstore.Store

	sync.WaitGroup
	// contains filtered or unexported fields
}

func Connect

func Connect(cfg config.Storage, logger zerolog.Logger, recv chan msg.ParsedMsg) (*StorageBackend, error)

Connect establishes the connection to the given storage backend based on a URI

func (*StorageBackend) Start

func (b *StorageBackend) Start() error

Start satisfies the StorageBackend interface

func (*StorageBackend) Stop

func (b *StorageBackend) Stop() error

Stop satisfies the StorageBackend interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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