Documentation ¶
Index ¶
- func Uint32toBinary(uint32num uint32) []byte
- func Uint8toBinary(uint8num uint8) []byte
- type WebsocketMessageObject
- func (wmo *WebsocketMessageObject) AddFile(file *os.File)
- func (wmo *WebsocketMessageObject) AddFileFrom(filepathh string)
- func (wmo *WebsocketMessageObject) AddJson(myjson interface{})
- func (wmo *WebsocketMessageObject) AddString(keyy string, mystring string)
- func (wmo *WebsocketMessageObject) DecodeFiles(dataFromClient []byte) []*os.File
- func (wmo *WebsocketMessageObject) DecodeJson(dataFromClient []byte) string
- func (wmo *WebsocketMessageObject) DecodeString(dataFromClient []byte, strkey string) string
- func (wmo *WebsocketMessageObject) DecodeStringAll(dataFromClient []byte) map[string]string
- func (wmo *WebsocketMessageObject) Encode()
- func (wmo *WebsocketMessageObject) PrintFilesSize()
- func (wmo *WebsocketMessageObject) PrintJsonSize()
- func (wmo *WebsocketMessageObject) PrintStringsSize()
- func (wmo *WebsocketMessageObject) ReadFilesBytes(dataFromClient []byte) ([]byte, uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Uint32toBinary ¶
func Uint8toBinary ¶
Types ¶
type WebsocketMessageObject ¶
type WebsocketMessageObject struct { BinaryData []byte Fdata []byte // contains filtered or unexported fields }
=============================================================
func NewWMO ¶
func NewWMO() WebsocketMessageObject
func NewWebsocketMessageObject ¶
func NewWebsocketMessageObject() WebsocketMessageObject
func (*WebsocketMessageObject) AddFile ¶
func (wmo *WebsocketMessageObject) AddFile(file *os.File)
func (*WebsocketMessageObject) AddFileFrom ¶
func (wmo *WebsocketMessageObject) AddFileFrom(filepathh string)
func (*WebsocketMessageObject) AddJson ¶
func (wmo *WebsocketMessageObject) AddJson(myjson interface{})
func (*WebsocketMessageObject) AddString ¶
func (wmo *WebsocketMessageObject) AddString(keyy string, mystring string)
func (*WebsocketMessageObject) DecodeFiles ¶
func (wmo *WebsocketMessageObject) DecodeFiles(dataFromClient []byte) []*os.File
func (*WebsocketMessageObject) DecodeJson ¶
func (wmo *WebsocketMessageObject) DecodeJson(dataFromClient []byte) string
------------------Decoders----------
func (*WebsocketMessageObject) DecodeString ¶
func (wmo *WebsocketMessageObject) DecodeString(dataFromClient []byte, strkey string) string
func (*WebsocketMessageObject) DecodeStringAll ¶
func (wmo *WebsocketMessageObject) DecodeStringAll(dataFromClient []byte) map[string]string
func (*WebsocketMessageObject) Encode ¶
func (wmo *WebsocketMessageObject) Encode()
func (*WebsocketMessageObject) PrintFilesSize ¶
func (wmo *WebsocketMessageObject) PrintFilesSize()
func (*WebsocketMessageObject) PrintJsonSize ¶
func (wmo *WebsocketMessageObject) PrintJsonSize()
func (*WebsocketMessageObject) PrintStringsSize ¶
func (wmo *WebsocketMessageObject) PrintStringsSize()
func (*WebsocketMessageObject) ReadFilesBytes ¶
func (wmo *WebsocketMessageObject) ReadFilesBytes(dataFromClient []byte) ([]byte, uint32)
Click to show internal directories.
Click to hide internal directories.