main
nilo 2024-11-06 20:02:21 -03:00
parent 1a7ebef58f
commit 9c3dcdb012
2 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func ServerStart(c *fiber.Ctx) error {
func OnRtmpConnect(c *fiber.Ctx) error {
var body map[string]interface{}
body := new(models.Connect)
if err := c.BodyParser(body); err != nil {
log.Printf("Error Start: %s\n", err)

View File

@ -50,6 +50,15 @@ type UpdPub struct {
WriteBitrate int `json:"write_bitrate"`
}
type Connect struct {
ServerId string `json:"server_id"`
SessionId string `json:"session_id"`
RemoteAddress string `json:"remote_addr"`
App string `json:"app"`
FlashVer string `json:"flashVer"`
TcUrl string `json:"tcUrl"`
}
type Purchase struct {
Data struct {
Context struct {