postgres

package
v0.0.0-...-b507f95 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTemporaryConnectionError

func IsTemporaryConnectionError(err error) bool

Types

type PostgresStorage

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

func NewPostgresStorage

func NewPostgresStorage(dataSourceName string, backoffInteraval []time.Duration) *PostgresStorage

func (*PostgresStorage) Add

func (storage *PostgresStorage) Add(ctx context.Context, metric metrics.Metrics) error

func (*PostgresStorage) Bootstrap

func (storage *PostgresStorage) Bootstrap(ctx context.Context) error

func (*PostgresStorage) BulkAdd

func (storage *PostgresStorage) BulkAdd(ctx context.Context, metricList []metrics.Metrics) error

func (*PostgresStorage) Close

func (storage *PostgresStorage) Close()

func (*PostgresStorage) Get

func (storage *PostgresStorage) Get(ctx context.Context, metric *metrics.Metrics) error

func (*PostgresStorage) List

func (storage *PostgresStorage) List(ctx context.Context) (metricsList []metrics.Metrics, err error)

func (*PostgresStorage) Ping

func (storage *PostgresStorage) Ping(ctx context.Context) bool

Jump to

Keyboard shortcuts

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