putting in base query and collector framework
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package name
|
||||
|
||||
import (
|
||||
"context"
|
||||
"gotemplate/internal/name"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
name *name.Service
|
||||
}
|
||||
|
||||
func New(nameSVC *name.Service) *Service {
|
||||
return &Service{
|
||||
name: nameSVC,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Service) Add(ctx context.Context, username string) error {
|
||||
return s.name.Add(ctx, username)
|
||||
}
|
||||
|
||||
func (s *Service) Get(ctx context.Context, username string) (string, error) {
|
||||
return s.name.Get(ctx, username)
|
||||
}
|
||||
Reference in New Issue
Block a user