29 lines
341 B
Go
29 lines
341 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
type Message struct {
|
||
|
Data interface{}
|
||
|
}
|
||
|
|
||
|
type Client struct {
|
||
|
Channel chan Message `json:"clients"`
|
||
|
}
|
||
|
|
||
|
func SSEHandler(c *gin.Context) {
|
||
|
}
|
||
|
|
||
|
func registerClient(client *Client) {
|
||
|
}
|
||
|
|
||
|
func unregisterClient(client *Client) {
|
||
|
}
|
||
|
|
||
|
func SendMsg(c *gin.Context) {
|
||
|
}
|
||
|
|
||
|
func handleMessages() {
|
||
|
}
|