github.com/wtfutil/wtf@v0.43.0/modules/gitter/gitter.go (about) 1 package gitter 2 3 import "time" 4 5 type Rooms struct { 6 Results []Room `json:"results"` 7 } 8 9 type Room struct { 10 ID string `json:"id"` 11 Name string `json:"name"` 12 URI string `json:"uri"` 13 } 14 15 type User struct { 16 ID string `json:"id"` 17 Username string `json:"username"` 18 DisplayName string `json:"displayName"` 19 } 20 21 type Message struct { 22 ID string `json:"id"` 23 Text string `json:"text"` 24 HTML string `json:"html"` 25 Sent time.Time `json:"sent"` 26 From User `json:"fromUser"` 27 Unread bool `json:"unread"` 28 }