add redis ip recorder

This commit is contained in:
yuzuki999
2022-11-02 10:26:04 +08:00
parent 5b9cfd51e9
commit e83a56f68d
6 changed files with 100 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ type Recorder struct {
*conf.RecorderConfig
}
func New(c *conf.RecorderConfig) *Recorder {
func NewRecorder(c *conf.RecorderConfig) *Recorder {
return &Recorder{
client: resty.New().SetTimeout(time.Duration(c.Timeout) * time.Second),
RecorderConfig: c,