Add Database Functions
This commit is contained in:
parent
126070829c
commit
253b020733
22 changed files with 1076 additions and 119 deletions
|
@ -5,9 +5,9 @@ import (
|
|||
)
|
||||
|
||||
type Room struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
Messages map[string]event.Event `json:"messages,omitempty"`
|
||||
State map[string]event.Event `json:"state,omitempty"`
|
||||
Members []string `json:"members,omitempty"`
|
||||
Version string `json:"version,omitempty"`
|
||||
Id string `json:"id,omitempty"`
|
||||
Messages map[string]*event.Event `json:"messages,omitempty"`
|
||||
//State map[string]event.Event `json:"state,omitempty"`
|
||||
Members []string `json:"members,omitempty"`
|
||||
Version string `json:"version,omitempty"`
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package room
|
||||
|
||||
func New() room *Room {
|
||||
|
||||
}
|
||||
func New() (room *Room) {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue