Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiModel ¶
type ApiModel struct {
// contains filtered or unexported fields
}
func NewApiModel ¶
type BadIp ¶
type BadIp struct { gorm.Model Ip string `gorm:"size:256"` Address string `gorm:"size:256"` Count uint64 `gorm:"int"` PcMp string `gorm:"size:256"` }
BadIp 阻止IP
type HttpInfo ¶
type HttpInfo struct { ClientIP string Method string UrlPath string Header string // contains filtered or unexported fields }
HttpInfo kafka 传进参数的Struct结构体
type IpInfoModel ¶
type IpInfoModel struct {
// contains filtered or unexported fields
}
func NewIpInfoModel ¶
func NewIpInfoModel(db *gorm.DB, rdb *redis.Client) *IpInfoModel
func (*IpInfoModel) CreateIpInfo ¶
func (a *IpInfoModel) CreateIpInfo(info *IpInfo) (id uint64, err error)
CreateIpInfo 创建APiRouter
Click to show internal directories.
Click to hide internal directories.