Documentation ¶
Index ¶
- func IsTemporaryConnectionError(err error) bool
- type PostgresStorage
- func (storage *PostgresStorage) Add(ctx context.Context, metric metrics.Metrics) error
- func (storage *PostgresStorage) Bootstrap(ctx context.Context) error
- func (storage *PostgresStorage) BulkAdd(ctx context.Context, metricList []metrics.Metrics) error
- func (storage *PostgresStorage) Close()
- func (storage *PostgresStorage) Get(ctx context.Context, metric *metrics.Metrics) error
- func (storage *PostgresStorage) List(ctx context.Context) (metricsList []metrics.Metrics, err error)
- func (storage *PostgresStorage) Ping(ctx context.Context) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresStorage ¶
type PostgresStorage struct {
// contains filtered or unexported fields
}
func NewPostgresStorage ¶
func NewPostgresStorage(dataSourceName string, backoffInteraval []time.Duration) *PostgresStorage
func (*PostgresStorage) Bootstrap ¶
func (storage *PostgresStorage) Bootstrap(ctx context.Context) error
func (*PostgresStorage) Close ¶
func (storage *PostgresStorage) Close()
Click to show internal directories.
Click to hide internal directories.