Documentation ¶
Index ¶
- Variables
- type HttpRequest
- func (self *HttpRequest) BaseByte() []byte
- func (self *HttpRequest) Byte() []byte
- func (self *HttpRequest) GetId() uint64
- func (self *HttpRequest) Marshal(info interface{}) (err error)
- func (self *HttpRequest) Reset()
- func (self *HttpRequest) SetType(id uint16)
- func (self *HttpRequest) Type() uint16
- func (self *HttpRequest) Unmarshal(data interface{}) (err error)
- func (self *HttpRequest) UnmarshalData(data []byte) (err error)
- type HttpResponse
- type HttpServeHandle
- type WebSocketServeHandle
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type HttpRequest ¶
type HttpRequest struct { sync.RWMutex TypeId uint16 `json:"code"` Id uint64 AppKey string AppSecret string // contains filtered or unexported fields }
func (*HttpRequest) BaseByte ¶
func (self *HttpRequest) BaseByte() []byte
func (*HttpRequest) Byte ¶
func (self *HttpRequest) Byte() []byte
func (*HttpRequest) GetId ¶
func (self *HttpRequest) GetId() uint64
func (*HttpRequest) Marshal ¶
func (self *HttpRequest) Marshal(info interface{}) (err error)
func (*HttpRequest) Reset ¶
func (self *HttpRequest) Reset()
func (*HttpRequest) SetType ¶
func (self *HttpRequest) SetType(id uint16)
func (*HttpRequest) Type ¶
func (self *HttpRequest) Type() uint16
func (*HttpRequest) Unmarshal ¶
func (self *HttpRequest) Unmarshal(data interface{}) (err error)
func (*HttpRequest) UnmarshalData ¶
func (self *HttpRequest) UnmarshalData(data []byte) (err error)
type HttpResponse ¶
type HttpResponse struct {
// contains filtered or unexported fields
}
func (HttpResponse) Close ¶
func (self HttpResponse) Close() (err error)
func (HttpResponse) Write ¶
func (self HttpResponse) Write(b []byte) (err error)
func (HttpResponse) WriteError ¶
func (self HttpResponse) WriteError(msg string) []byte
type HttpServeHandle ¶
type HttpServeHandle struct {
// contains filtered or unexported fields
}
func (*HttpServeHandle) Run ¶
func (self *HttpServeHandle) Run(conf *Configure) (err error)
func (*HttpServeHandle) Stop ¶
func (self *HttpServeHandle) Stop()
type WebSocketServeHandle ¶
type WebSocketServeHandle struct {
// contains filtered or unexported fields
}
func (*WebSocketServeHandle) Run ¶
func (self *WebSocketServeHandle) Run(conf *Configure) (err error)
func (*WebSocketServeHandle) Stop ¶
func (self *WebSocketServeHandle) Stop()
Click to show internal directories.
Click to hide internal directories.