Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteStr ¶
type RouteStr struct { Server string Service string Method string // contains filtered or unexported fields }
简单route str处理
func NewRouteStr ¶
func (*RouteStr) GetShortStr ¶
type Server ¶
type Server struct { // 如 room-1 ID string `json:"id"` // 如 room Type string `json:"type"` // reserved Metadata map[string]string `json:"metadata"` // 可连接地址 Address string `json:"address"` // Frontend bool `json:"frontend"` ClientAddress string `json:"clientaddress"` WSClientAddress string `json:"wsclientaddress"` }
Server struct
func (*Server) AsJSONString ¶
AsJSONString returns the server as a json string
Click to show internal directories.
Click to hide internal directories.