Add basic types
This commit is contained in:
21
types.go
Normal file
21
types.go
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
|
type Event struct {
|
||||||
|
Seq int
|
||||||
|
Type string
|
||||||
|
Hash string
|
||||||
|
ItemID string
|
||||||
|
EventID string
|
||||||
|
Data map[string]interface{}
|
||||||
|
Timestamp time.Time
|
||||||
|
}
|
||||||
|
|
||||||
|
type SLItem struct {
|
||||||
|
ID string
|
||||||
|
Content string
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt time.Time
|
||||||
|
DeletedAt time.Time
|
||||||
|
}
|
Reference in New Issue
Block a user