servicecontext.go 215 B

123456789101112131415
  1. package svc
  2. import (
  3. "apklink/service/internal/config"
  4. )
  5. type ServiceContext struct {
  6. Config config.Config
  7. }
  8. func NewServiceContext(c config.Config) *ServiceContext {
  9. return &ServiceContext{
  10. Config: c,
  11. }
  12. }