119 lines
3.4 KiB
Go
119 lines
3.4 KiB
Go
package models
|
|
|
|
type LalServer struct {
|
|
Server string `json:"server_id"`
|
|
BinInfo string `json:"-"`
|
|
LalVersion string `json:"lal_version"`
|
|
APIVersion string `json:"-"`
|
|
NotifyVersion string `json:"-"`
|
|
WebUIVersion string `json:"-"`
|
|
StartTime string `json:"start_time"`
|
|
}
|
|
|
|
type Pub struct {
|
|
Server string `json:"server_id"`
|
|
SessionId string `json:"session_id"`
|
|
Protocol string `json:"protocol"`
|
|
BaseType string `json:"base_type"`
|
|
RemoteAddress string `json:"remotet_addr"`
|
|
Url string `json:"url"`
|
|
AppName string `json:"app_name"`
|
|
StreamName string `json:"stream_name"`
|
|
UrlParam string `json:"url_param"`
|
|
HasInSession bool `json:"has_in_session"`
|
|
HasOutSession bool `json:"has_out_session"`
|
|
ReadBytesSum int `json:"read_bytes_sum"`
|
|
WroteBytesSum int `json:"wrote_bytes_sum"`
|
|
}
|
|
|
|
type Update struct {
|
|
LalServer string `json:"server_id"`
|
|
Groups []Group `json:"groups"`
|
|
}
|
|
|
|
type Group struct {
|
|
Channel string `json:"stream_name"`
|
|
AudioCodec string `json:"audio_codec"`
|
|
VideoCodec string `json:"video_codec"`
|
|
VideoWidth int `json:"video_width"`
|
|
VideoHeight int `json:"video_height"`
|
|
UpdPub UpdPub `json:"pub"`
|
|
Subs string `json:"subs"`
|
|
UpdPull UpdPub `json:"pull"`
|
|
}
|
|
|
|
type UpdPub struct {
|
|
Protocol string `json:"protocol"`
|
|
SessionId string `json:"session_id"`
|
|
RemoteAddress string `json:"remote_addr"`
|
|
StartTime string `json:"start_time"`
|
|
ReadBytesSum int `json:"read_bytes_sum"`
|
|
WroteBytesSum int `json:"wrote_bytes_sum"`
|
|
Bitrate int `json:"bitrate"`
|
|
ReadBitrate int `json:"read_bitrate"`
|
|
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 {
|
|
Action struct {
|
|
ID string `json:"id"`
|
|
} `json:"action"`
|
|
Activation struct {
|
|
ID string `json:"id"`
|
|
} `json:"activation"`
|
|
App struct {
|
|
ID string `json:"id"`
|
|
} `json:"app"`
|
|
Configuration struct {
|
|
ID string `json:"id"`
|
|
} `json:"configuration"`
|
|
Trigger struct {
|
|
Key string `json:"key"`
|
|
} `json:"trigger"`
|
|
} `json:"_context"`
|
|
Contact struct {
|
|
Email string `json:"email"`
|
|
Emails []struct {
|
|
Email string `json:"email"`
|
|
ID string `json:"id"`
|
|
Primary bool `json:"primary"`
|
|
Tag string `json:"tag"`
|
|
} `json:"emails"`
|
|
Locale string `json:"locale"`
|
|
Name struct {
|
|
First string `json:"first"`
|
|
Last string `json:"last"`
|
|
} `json:"name"`
|
|
} `json:"contact"`
|
|
ContactID string `json:"contact_id"`
|
|
Context0 struct {
|
|
ActivationID string `json:"activationId"`
|
|
MetaSiteID string `json:"metaSiteId"`
|
|
} `json:"context"`
|
|
PlanCycleDuration string `json:"plan_cycle_duration"`
|
|
PlanDescription string `json:"plan_description"`
|
|
PlanID string `json:"plan_id"`
|
|
PlanOrderID string `json:"plan_order_id"`
|
|
PlanPrice struct {
|
|
Currency string `json:"currency"`
|
|
Value string `json:"value"`
|
|
} `json:"plan_price"`
|
|
PlanStartDate string `json:"plan_start_date"`
|
|
PlanTitle string `json:"plan_title"`
|
|
PlanValidUntil string `json:"plan_valid_until"`
|
|
SiteEmail string `json:"site_email"`
|
|
SiteName string `json:"site_name"`
|
|
} `json:"data"`
|
|
}
|