Documentation
¶
Index ¶
Constants ¶
View Source
const ( NewClientListenerType = "new-client" NewClientSessionListenerType = "new-client-session" CloseClientListenerType = "close-client" CloseClientSessionListenerType = "close-client-session" NewMessageListenerType = "new-message" )
Variables ¶
View Source
var ( ErrMaxCountSessions = apperr.New("max_count_sessions", apperr.WithTextTranslate(translator.Translate{translator.RU: "Превышено максимальное количество сессий", translator.EN: "Maximum number of sessions exceeded"}), apperr.WithCode(code.Unauthenticated)) )
View Source
var (
MaxMessageSize int64 = 512
)
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Type string `json:"type"` Action string `json:"action"` Message interface{} `json:"message"` From *int `json:"from,omitempty"` To []int `json:"to,omitempty"` ToSession *string `json:"to_session,omitempty"` ExceptSession *string `json:"except_session,omitempty"` ContentType int `json:"-"` }
Click to show internal directories.
Click to hide internal directories.