model

package
v0.0.0-...-93dd735 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2016 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

View Source
const (
	PROTOCOL_TCP              = RouterProtocol(0)
	PROTOCOL_HTTP_LONGPOLLING = RouterProtocol(1)
	PROTOCOL_HTTP_WEBSOCKET   = RouterProtocol(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	Addr         string         `json:"addr,omitempty"`
	InternalAddr string         `json:"internalAddr,omitempty"`
	Protocol     RouterProtocol `json:"protolcol,omitempty"`
	BucketSize   int            `json:"bucketSize,omitempty"`
}

func UnMarshalRouter

func UnMarshalRouter(data []byte) *Router

func (*Router) Marshal

func (self *Router) Marshal() []byte

type RouterProtocol

type RouterProtocol int

type Rule

type Rule struct {
}

func UnMarshalRule

func UnMarshalRule(data []byte) *Rule

func (*Rule) Marshal

func (self *Rule) Marshal() []byte

type Session

type Session struct {
	Id     string
	UserId int
	Status int32
}

type Support

type Support struct {
	Addr        string `json:"addr,omitempty"`
	Product     int    `json:"product,omitempty"`
	CmdList     []int  `json:"cmdList,omitempty"`
	BizList     []int  `json:"bizList,omitempty"`
	MinProtocol int    `json:"minProtocol,omitempty"`
	MaxProtocol int    `json:"maxProtocol,omitempty"`
}

func UnMarshalSupport

func UnMarshalSupport(data []byte) *Support

func (*Support) Marshal

func (self *Support) Marshal() []byte

func (*Support) Mathces

func (self *Support) Mathces(msg *p.Message) bool

func (*Support) SupportBiz

func (self *Support) SupportBiz(biz int) bool

Jump to

Keyboard shortcuts

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