b1f8ac453b
feat!: base template * first bit of templating * codeowners * linuxbased * restart * baseline project * add grpc api and basic integration test * startqueue * queueMsg * splitscripts * migrations * queueintegrationtest * gateway
25 lines
413 B
Go
25 lines
413 B
Go
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)
|
|
}
|