Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseMiddleware ¶
func DatabaseMiddleware(addr, db string) gin.HandlerFunc
func ReportHandler ¶
func RetrieveHandler ¶
func SingleLogHandler ¶
Types ¶
type ActionStateHistory ¶
type ActionStateHistory struct {
Action interface{} `json:"action"`
State interface{} `json:"state"`
}
type Error ¶
type Error struct {
Message string `json:"message"`
Stacktrace []StracktraceLine `json:"stacktrace"`
}
type Log ¶
type Log struct {
Id bson.ObjectId `bson:"_id" json:"id"`
Timestamp string `json:"timestamp" binding:"required"`
CreatedAt time.Time `bson:"created_at" json:"-"`
Location Location `json:"location" binding:"required"`
Error Error `json:"error" binding:"required"`
ActionStateHistory []ActionStateHistory `json:"action_state_history"`
}
Click to show internal directories.
Click to hide internal directories.