spoc-bot-vr/model/thread.go

24 lines
430 B
Go

package model
import "time"
// EVENT ||--|{ THREAD: "spawns"
// THREAD ||--|{ MESSAGE: "populated by"
type Thread struct {
ID string
URL string
TS uint64
Channel string
Updated uint64
}
func NewThread(ID, URL string, TS uint64, Channel string) Thread {
return Thread{
ID: ID,
URL: URL,
TS: TS,
Channel: Channel,
Updated: uint64(time.Now().UnixNano() / int64(time.Millisecond)),
}
}