Discover Packages
github.com/gvidow/go-chat-transport
internal
pkg
entity
package
Version:
v0.0.0-...-aea78ab
Opens a new window with list of versions in this module.
Published: May 21, 2024
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
Documentation
¶
type Message struct {
Username string `json:"username" example:"user-2024"`
Time uint64 `json:"time" example:"1711902448"`
Content string `json:"content" example:"hello!"`
}
type MessageWithErrorFlag struct {
Message
Error bool `json:"error"`
}
type Segment struct {
Time uint64 `json:"time" example:"1711902448"`
Data string `json:"data"`
Size int `json:"size" example:"15"`
Num int `json:"num" example:"4"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.