Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageType ¶
type MessageType int
const ( Request MessageType = iota ResponseData ResponseError Unknown )
type RequestMessage ¶
func NewRequestMessage ¶
func NewRequestMessage(data string) *RequestMessage
type ResponseDataMessage ¶
func NewResponseDataMessage ¶
func NewResponseDataMessage(data string) *ResponseDataMessage
func (*ResponseDataMessage) DecodeResponse ¶
func (rm *ResponseDataMessage) DecodeResponse() ([]byte, error)
type ResponseErrorMessage ¶
func NewResponseErrorMessage ¶
func NewResponseErrorMessage(code ErrorCode) *ResponseErrorMessage
type SubdomainRequest ¶
type SubdomainRequest struct {
Subdomain string `json:"subdomain"`
}
type TokenResponse ¶
type WSMessage ¶
type WSMessage struct {
Type string `json:"type"`
}
func (*WSMessage) MessageType ¶
func (w *WSMessage) MessageType() MessageType
Click to show internal directories.
Click to hide internal directories.