updated logs code comments
This commit is contained in:
@@ -323,10 +323,10 @@ type App interface {
|
|||||||
// FindLogById finds a single Log entry by its id.
|
// FindLogById finds a single Log entry by its id.
|
||||||
FindLogById(id string) (*Log, error)
|
FindLogById(id string) (*Log, error)
|
||||||
|
|
||||||
// LogsStatsItem defines the total number of logs for a specific time period.
|
// LogsStatsItem returns hourly grouped logs statistics.
|
||||||
LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error)
|
LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error)
|
||||||
|
|
||||||
// DeleteOldLogs delete all requests that are created before createdBefore.
|
// DeleteOldLogs delete all logs that are created before createdBefore.
|
||||||
DeleteOldLogs(createdBefore time.Time) error
|
DeleteOldLogs(createdBefore time.Time) error
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ type LogsStatsItem struct {
|
|||||||
Total int `db:"total" json:"total"`
|
Total int `db:"total" json:"total"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LogsStats returns hourly grouped requests logs statistics.
|
// LogsStats returns hourly grouped logs statistics.
|
||||||
func (app *BaseApp) LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error) {
|
func (app *BaseApp) LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error) {
|
||||||
result := []*LogsStatsItem{}
|
result := []*LogsStatsItem{}
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ func (app *BaseApp) LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error) {
|
|||||||
return result, err
|
return result, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteOldLogs delete all requests that are created before createdBefore.
|
// DeleteOldLogs delete all logs that are created before createdBefore.
|
||||||
//
|
//
|
||||||
// For better performance the logs delete is executed as plain SQL statement,
|
// For better performance the logs delete is executed as plain SQL statement,
|
||||||
// aka. no delete model hook events will be fired.
|
// aka. no delete model hook events will be fired.
|
||||||
|
|||||||
6774
plugins/jsvm/internal/types/generated/types.d.ts
vendored
6774
plugins/jsvm/internal/types/generated/types.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user