Files
Memoh/internal/heartbeat/types.go
T
Acbox Liu 2f38662d4d feat: heartbeat (#108)
* feat: heartbeat

* feat: independent heartbeat model
2026-02-25 16:32:52 +08:00

25 lines
562 B
Go

package heartbeat
import "time"
type Config struct {
BotID string
OwnerUserID string
Interval int
}
type Log struct {
ID string `json:"id"`
BotID string `json:"bot_id"`
Status string `json:"status"`
ResultText string `json:"result_text"`
ErrorMessage string `json:"error_message"`
Usage any `json:"usage,omitempty"`
StartedAt time.Time `json:"started_at"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
}
type ListLogsResponse struct {
Items []Log `json:"items"`
}