Documentation ¶
Index ¶
- type PostgresStorage
- func (s *PostgresStorage) GetAllMetricsNew(ctx context.Context) ([]*metrics.Metric, error)
- func (s *PostgresStorage) GetValue(ctx context.Context, t string, n string) (any, error)deprecated
- func (s *PostgresStorage) Ping(ctx context.Context) error
- func (s *PostgresStorage) Update(ctx context.Context, t string, n string, v string) errordeprecated
- func (s *PostgresStorage) UpdateBatch(ctx context.Context, m []metrics.Metric) error
- func (s *PostgresStorage) UpdateNew(ctx context.Context, mtype string, mname string, delta *int64, value *float64) error
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 (*PostgresStorage) UpdateBatch ¶
Click to show internal directories.
Click to hide internal directories.