bugfix on models
parent
c35b8420d2
commit
dfa9f807c0
|
|
@ -103,8 +103,10 @@ func OnPubStart(c *fiber.Ctx) error {
|
||||||
// ================================================================
|
// ================================================================
|
||||||
p := new(models.Pub)
|
p := new(models.Pub)
|
||||||
if err := c.BodyParser(p); err != nil {
|
if err := c.BodyParser(p); err != nil {
|
||||||
|
log.Printf("Error PubStart: %s\n", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Start channel %s, urlParam %s, SessionId %s\n", p.Channel, p.UrlParam, p.SessionId)
|
log.Printf("Start channel %s, urlParam %s, SessionId %s\n", p.Channel, p.UrlParam, p.SessionId)
|
||||||
|
|
||||||
KickSession(p.Channel, p.SessionId)
|
KickSession(p.Channel, p.SessionId)
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ type Pub struct {
|
||||||
UrlParam string `json:"url_param"`
|
UrlParam string `json:"url_param"`
|
||||||
HasInSession bool `json:"has_in_session"`
|
HasInSession bool `json:"has_in_session"`
|
||||||
HasOutSession bool `json:"has_out_session"`
|
HasOutSession bool `json:"has_out_session"`
|
||||||
ReadBytesSum bool `json:"read_bytes_sum"`
|
ReadBytesSum int `json:"read_bytes_sum"`
|
||||||
WroteBytesSum bool `json:"wrote_bytes_sum"`
|
WroteBytesSum int `json:"wrote_bytes_sum"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Update struct {
|
type Update struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue