pgeventstorage

package
v0.2.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresEventStorage

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

PostgresEventStorage is an implementation of the event storage interface that uses a postgres database to store the data

func NewPostgresEventStorage

func NewPostgresEventStorage(cfg db.Config) (*PostgresEventStorage, error)

NewPostgresEventStorage creates and initializes an instance of PostgresEventStorage

func (*PostgresEventStorage) Close

func (p *PostgresEventStorage) Close() error

Close closes the database connection

func (*PostgresEventStorage) LogEvent

func (p *PostgresEventStorage) LogEvent(ctx context.Context, ev *event.Event) error

LogEvent logs an event to the database

Jump to

Keyboard shortcuts

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