Add metrics

This commit is contained in:
2022-02-14 01:42:18 +01:00
parent cb0917d916
commit 80eb11b0c9
3 changed files with 24 additions and 9 deletions

View File

@@ -9,12 +9,12 @@ import (
type Service struct {
logger *zap.Logger
cache *cache.Cache
cache *cache.MetricCache
repository Repository
passwordHasher PasswordHasher
}
func NewService(l *zap.Logger, ur Repository, c *cache.Cache) *Service {
func NewService(l *zap.Logger, ur Repository, c *cache.MetricCache) *Service {
return &Service{
logger: l,
repository: ur,