postgres

package
v0.0.0-...-94b8695 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresStorage

type PostgresStorage struct {
	ConnStr string
}

func NewPSQLStr

func NewPSQLStr(ctx context.Context, connection string) (*PostgresStorage, error)

func (*PostgresStorage) GetAllMetricsNew

func (s *PostgresStorage) GetAllMetricsNew(ctx context.Context) ([]*metrics.Metric, error)

func (*PostgresStorage) GetValue deprecated

func (s *PostgresStorage) GetValue(ctx context.Context, t string, n string) (any, error)

Deprecated: use GetAllMetricsNew

func (*PostgresStorage) Ping

func (s *PostgresStorage) Ping(ctx context.Context) error

func (*PostgresStorage) Update deprecated

func (s *PostgresStorage) Update(ctx context.Context, t string, n string, v string) error

Deprecated: use UpdateNew

func (*PostgresStorage) UpdateBatch

func (s *PostgresStorage) UpdateBatch(ctx context.Context, m []metrics.Metric) error

func (*PostgresStorage) UpdateNew

func (s *PostgresStorage) UpdateNew(ctx context.Context, mtype string, mname string, delta *int64, value *float64) error

Jump to

Keyboard shortcuts

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