service.go 228 B

123456789101112131415161718
  1. package service
  2. import (
  3. "go-common/library/rate/limit/bench/stress/conf"
  4. )
  5. // Service struct
  6. type Service struct {
  7. c *conf.Config
  8. }
  9. // New init
  10. func New(c *conf.Config) (s *Service) {
  11. s = &Service{
  12. c: c,
  13. }
  14. return s
  15. }