This commit is contained in:
Asim Aslam
2021-11-18 13:02:33 +00:00
parent 7f7a87c428
commit d6d7577584
13 changed files with 27 additions and 21 deletions

View File

@@ -31,10 +31,10 @@ type Metadata struct {
}
type Stream struct {
Id string
Id string
Description string
Messages []*Message
Updated int64
Messages []*Message
Updated int64
}
type Message struct {
@@ -71,9 +71,9 @@ func newStore() *Store {
func newStream(id, desc string) *Stream {
return &Stream{
Id: id,
Id: id,
Description: desc,
Updated: time.Now().UnixNano(),
Updated: time.Now().UnixNano(),
}
}