bugfix on models

main
nilo 2024-11-06 21:09:38 -03:00
parent c35b8420d2
commit dfa9f807c0
2 changed files with 4 additions and 2 deletions

View File

@ -103,8 +103,10 @@ func OnPubStart(c *fiber.Ctx) error {
// ================================================================
p := new(models.Pub)
if err := c.BodyParser(p); err != nil {
log.Printf("Error PubStart: %s\n", err)
return err
}
log.Printf("Start channel %s, urlParam %s, SessionId %s\n", p.Channel, p.UrlParam, p.SessionId)
KickSession(p.Channel, p.SessionId)

View File

@ -22,8 +22,8 @@ type Pub struct {
UrlParam string `json:"url_param"`
HasInSession bool `json:"has_in_session"`
HasOutSession bool `json:"has_out_session"`
ReadBytesSum bool `json:"read_bytes_sum"`
WroteBytesSum bool `json:"wrote_bytes_sum"`
ReadBytesSum int `json:"read_bytes_sum"`
WroteBytesSum int `json:"wrote_bytes_sum"`
}
type Update struct {