Documentation ¶
Overview ¶
Storage with postgresql
Index ¶
- Constants
- type Storage
- func (s *Storage) GetAllData(ctx context.Context) (entity.MetricsType, error)
- func (s *Storage) GetCounter(ctx context.Context, counterName string) (int64, error)
- func (s *Storage) GetGauge(ctx context.Context, gaugeName string) (float64, error)
- func (s *Storage) Ping(ctx context.Context) error
- func (s *Storage) SaveAllData(ctx context.Context, metrics []entity.Metrics) error
- func (s *Storage) SaveCounter(ctx context.Context, counterName string, counterValue int64) error
- func (s *Storage) SaveGauge(ctx context.Context, gaugeName string, gaugeValue float64) error
Constants ¶
View Source
const (
UniqueViolation = "unique_violation"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) GetAllData ¶
func (*Storage) GetCounter ¶
func (*Storage) SaveAllData ¶
func (*Storage) SaveCounter ¶
Click to show internal directories.
Click to hide internal directories.