package
Version:
v0.0.0-...-3f4cbe2
Opens a new window with list of versions in this module.
Published: Feb 25, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
const (
DISCONNECT Event = iota + 1
CONNECT
ERROR
)
type Log struct {
gorm.Model
AppName string `json:"app_name"`
Label string `json:"label"`
Level int32 `json:"level"`
Message string `json:"message"`
Hostname string `json:"hostname"`
Payload []byte `json:"payload"`
Line int32 `json:"line"`
File string `json:"file"`
}
type Watcher struct {
gorm.Model `json:"-"`
App string `json:"app"`
Host string `json:"host" gorm:"unique"`
Mode int `json:"mode"`
IsActive bool `json:"is_active"`
}
type WatcherEvent struct {
gorm.Model
Watcher Watcher `json:"watcher"`
WatcherID uint `json:"-"`
Event Event `json:"event"`
Message string `json:"message"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.