mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-09-02 23:58:04 -05:00
19 lines
228 B
Go
19 lines
228 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"go-common/library/rate/limit/bench/stress/conf"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Service struct
|
||
|
|
type Service struct {
|
||
|
|
c *conf.Config
|
||
|
|
}
|
||
|
|
|
||
|
|
// New init
|
||
|
|
func New(c *conf.Config) (s *Service) {
|
||
|
|
s = &Service{
|
||
|
|
c: c,
|
||
|
|
}
|
||
|
|
return s
|
||
|
|
}
|