package
Version:
v0.0.0-...-be2d88d
Opens a new window with list of versions in this module.
Published: Jan 10, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Message struct {
Text string `json:"text" bson:"text"`
SenderID string `json:"sender" bson:"sender_id"`
ReciverID string `json:"reciver" bson:"reciver_id"`
}
type NewMessage struct {
Text string `json:"text"`
ReciverID string `json:"reciverID"`
}
type NewTodo struct {
Text string `json:"text"`
UserID string `json:"userId"`
}
type NewUser struct {
Name string `json:"name"`
}
type Todo struct {
ID string `json:"id"`
Text string `json:"text"`
Done bool `json:"done"`
UserID string `json:"user"`
}
type User struct {
ID string `json:"id"`
Name string `json:"name"`
Friends []*User `json:"friends"`
}
Users
Source Files
¶
Click to show internal directories.
Click to hide internal directories.