handler

package
v0.0.0-...-7cd6839 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error = log.New(os.Stderr, "ERROR ", log.Lshortfile|log.LstdFlags)
	Debug = log.New(os.Stderr, "DEBUG ", log.Lshortfile|log.LstdFlags)
)

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL