Documentation ¶
Index ¶
- Constants
- type TraceRequestHistory
- type TraceRequestHistoryDB
- func (db *TraceRequestHistoryDB) InsertHistory(history TraceRequestHistory) (*TraceRequestHistory, error)
- func (db *TraceRequestHistoryDB) QueryCountByScopeID(scopeID string) (int32, error)
- func (db *TraceRequestHistoryDB) QueryHistoriesByScopeID(scopeID string, timestamp time.Time, limit int64) ([]*TraceRequestHistory, error)
- func (db *TraceRequestHistoryDB) QueryHistoryByRequestID(scopeID string, requestID string) (*TraceRequestHistory, error)
- func (db *TraceRequestHistoryDB) UpdateDebugResponseByRequestID(scopeID string, requestID string, responseCode int, responseBody string) (*TraceRequestHistory, error)
- func (db *TraceRequestHistoryDB) UpdateDebugStatusByRequestID(scopeID string, requestID string, statusCode int) (*TraceRequestHistory, error)
Constants ¶
View Source
const (
TableSpTraceRequestHistory = "sp_trace_request_history"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraceRequestHistory ¶
type TraceRequestHistory struct { RequestId string `gorm:"column:request_id" db:"request_id" json:"request_id" form:"request_id"` TerminusKey string `gorm:"column:terminus_key" db:"terminus_key" json:"terminus_key" form:"terminus_key"` Url string `gorm:"column:url" db:"url" json:"url" form:"url"` QueryString string `gorm:"column:query_string" db:"query_string" json:"query_string" form:"query_string"` Header string `gorm:"column:header" db:"header" json:"header" form:"header"` Body string `gorm:"column:body" db:"body" json:"body" form:"body"` Method string `gorm:"column:method" db:"method" json:"method" form:"method"` Status int `gorm:"column:status" db:"status" json:"status" form:"status"` ResponseStatus int `gorm:"column:response_status" db:"response_status" json:"response_status" form:"response_status"` ResponseBody string `gorm:"column:response_body" db:"response_body" json:"response_body" form:"response_body"` CreateTime time.Time `gorm:"column:create_time" db:"create_time" json:"create_time" form:"create_time"` UpdateTime time.Time `gorm:"column:update_time" db:"update_time" json:"update_time" form:"update_time"` }
func (TraceRequestHistory) TableName ¶
func (TraceRequestHistory) TableName() string
type TraceRequestHistoryDB ¶
TraceRequestHistoryDB .
func (*TraceRequestHistoryDB) InsertHistory ¶
func (db *TraceRequestHistoryDB) InsertHistory(history TraceRequestHistory) (*TraceRequestHistory, error)
func (*TraceRequestHistoryDB) QueryCountByScopeID ¶
func (db *TraceRequestHistoryDB) QueryCountByScopeID(scopeID string) (int32, error)
func (*TraceRequestHistoryDB) QueryHistoriesByScopeID ¶
func (db *TraceRequestHistoryDB) QueryHistoriesByScopeID(scopeID string, timestamp time.Time, limit int64) ([]*TraceRequestHistory, error)
func (*TraceRequestHistoryDB) QueryHistoryByRequestID ¶
func (db *TraceRequestHistoryDB) QueryHistoryByRequestID(scopeID string, requestID string) (*TraceRequestHistory, error)
func (*TraceRequestHistoryDB) UpdateDebugResponseByRequestID ¶
func (db *TraceRequestHistoryDB) UpdateDebugResponseByRequestID(scopeID string, requestID string, responseCode int, responseBody string) (*TraceRequestHistory, error)
func (*TraceRequestHistoryDB) UpdateDebugStatusByRequestID ¶
func (db *TraceRequestHistoryDB) UpdateDebugStatusByRequestID(scopeID string, requestID string, statusCode int) (*TraceRequestHistory, error)
Click to show internal directories.
Click to hide internal directories.