Discover Packages
github.com/doublegrey/lotus
api
app
logs
package
Version:
v0.0.0-...-82869e8
Opens a new window with list of versions in this module.
Published: Nov 16, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Events channel for integrations
Create handler creates new log record
Delete handler deletes log by id
DeleteAll handler clears app's logs
Get handler returns log record by id
GetAll handler returns app's logs
type Event struct {
App primitive .ObjectID `bson:"_id" json:"id"`
Data map[string ]interface{} `json:"data" binding:"required"`
Created time .Time `json:"created"`
}
type Record struct {
ID primitive .ObjectID `bson:"_id" json:"id,omitempty"`
Data map[string ]interface{} `json:"data" binding:"required"`
Created time .Time `json:"created"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.