Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID int64 `json:"id"` DeviceID int64 `json:"device_id"` Code string `json:"code"` Action string `json:"action"` Index int `json:"index"` Data json.RawMessage `json:"data"` CreatedAt time.Time `json:"created_at"` EventType string `json:"event_type"` }
func NewEvent ¶
func NewEvent(v repo.DahuaEvent) Event
Click to show internal directories.
Click to hide internal directories.