package
Version:
v1.9.1
Opens a new window with list of versions in this module.
Published: Mar 9, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func StructToMap(v interface{}) (map[string]interface{}, error)
type Event struct {
Type EventType `json:"type"`
CreatedAt time.Time `json:"created_at"`
EsTimeStamp int64 `json:"@timestamp"`
UserId int `json:"user_id"`
Values map[string]interface{} `json:"values"`
}
const (
EventTypeDeviceAdd EventType = "device_add"
EventTypeDeviceDelete EventType = "device_delete"
EventTypePluginAdd EventType = "plugin_add"
EventTypePluginDelete EventType = "plugin_delete"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.