Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController() *Controller
func (*Controller) RegisterRoute ¶
func (c *Controller) RegisterRoute(group *gin.RouterGroup)
type Record ¶
type Record struct {
ID uuid.UUID `json:"id" gorm:"primary_key;type:uuid;"`
UserID string `json:"userId" gorm:"not null;default:'unknown'"`
Path string `json:"path" gorm:"not null;"`
Method string `json:"method" gorm:"not null;"`
Code string `json:"code" gorm:"not null;"`
ClientIP string `json:"clientIp" gorm:"not null;"`
UserAgent string `json:"userAgent" gorm:"not null;"`
Cost int64 `json:"cost" gorm:"not null;"`
IsApi bool `json:"-"`
database.BaseModel
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func GetService ¶
func GetService() *Service
func (*Service) GetStatistic ¶
func (*Service) GetVersionInfo ¶
func (*Service) Initialize ¶
func (*Service) InsertRecord ¶
Click to show internal directories.
Click to hide internal directories.