data clean

This commit is contained in:
yanghao05
2023-02-07 14:40:13 +08:00
parent 2d52491536
commit 45400ae272
9 changed files with 45 additions and 118 deletions

View File

@@ -23,7 +23,6 @@ type Http struct {
type JWT struct {
SigningKey string // jwt签名
ExpiresTime string // 过期时间
BufferTime string // 缓冲时间
Issuer string // 签发者
}
@@ -35,14 +34,6 @@ func (j JWT) ExpiresTimeDuration() time.Duration {
return d
}
func (j JWT) BufferTimeDuration() time.Duration {
d, err := time.ParseDuration(j.BufferTime)
if err != nil {
log.Fatal(err)
}
return d
}
type Whitelist struct {
AllowOrigin string
AllowHeaders string