Documentation ¶
Index ¶
- Variables
- func GetUUID(msg model.IteungMessage, keyword string) string
- func IsLoginRequest(msg model.IteungMessage, keyword string) bool
- func MagicLinkEvent(roomId string, PublicKey, PrivateKey string)
- func RunHub()
- func RunSocket(c *websocket.Conn, PublicKey, PrivateKey string) (Id string)
- func SendMessageTo(ID string, msg string) (res bool)
- func SendStructTo(ID string, strc interface{}) (res bool)
- type Client
- type LoginInfo
- type Message
- type WhatsauthRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var Clients = make(map[string]*websocket.Conn) // Note: although large maps with pointer-like types (e.g. strings) as keys are slow, using pointers themselves as keys is acceptable and fast
View Source
var Register = make(chan Client) // Register channel for Client Struct
View Source
var SendMesssage = make(chan Message)
View Source
var Unregister = make(chan string)
Functions ¶
func IsLoginRequest ¶ added in v0.0.2
func IsLoginRequest(msg model.IteungMessage, keyword string) bool
func MagicLinkEvent ¶
func SendMessageTo ¶
func SendStructTo ¶
Types ¶
type WhatsauthRequest ¶
Click to show internal directories.
Click to hide internal directories.