support postgres

This commit is contained in:
2023-11-28 10:19:07 +08:00
parent de3bea06a7
commit 0785d43ff1
5 changed files with 55 additions and 26 deletions

View File

@@ -13,6 +13,7 @@ import (
type Record struct {
ID int64 `gorm:"primaryKey,autoIncrement"`
UpstreamEndpoint string
UpstreamSK string
CreatedAt time.Time
IP string
Body string `gorm:"serializer:json"`
@@ -21,8 +22,8 @@ type Record struct {
ResponseTime time.Duration
ElapsedTime time.Duration
Status int
UpstreamID uint
Authorization string
Authorization string // the autorization header send by client
UserAgent string
}
type StreamModeChunk struct {