packettool

package
v0.0.0-...-0c5ff18 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypePacket = 1
	TypeEntity = 2
)
View Source
const (
	O_BLANK_LINE   = "\n"
	O_IMPORT_LINES = "import (\n\t\"github.com/colefan/gsgo/netio/iobuffer\"\n\t\"github.com/colefan/gsgo/netio/packet\"\n)\n"
	O_SPACE        = " "
	O_TAB          = "\t"
)

Variables

This section is empty.

Functions

func GenPacketForGoLang

func GenPacketForGoLang(storepath string, filename string) error

func GenPacketForJs

func GenPacketForJs(filename string) error

Types

type MyField

type MyField struct {
	// contains filtered or unexported fields
}

func NewMyField

func NewMyField() *MyField

type MyMsgType

type MyMsgType struct {
	// contains filtered or unexported fields
}

type MyPacket

type MyPacket struct {
	// contains filtered or unexported fields
}

func NewMyPacket

func NewMyPacket(cctype int) *MyPacket

func (*MyPacket) AddField

func (this *MyPacket) AddField(f *MyField) error

func (*MyPacket) GenGoEntityClass

func (this *MyPacket) GenGoEntityClass() string

func (*MyPacket) GenGoPacketClass

func (this *MyPacket) GenGoPacketClass() string

type MyRoot

type MyRoot struct {
	// contains filtered or unexported fields
}

func GenPacket

func GenPacket(filename string) (*MyRoot, error)

func NewMyRoot

func NewMyRoot() *MyRoot

func (*MyRoot) AddFieldInPack

func (this *MyRoot) AddFieldInPack(field *MyField) error

func (*MyRoot) GenGoProtocolFiles

func (this *MyRoot) GenGoProtocolFiles() (string, error)

func (*MyRoot) PutMyMsgType

func (this *MyRoot) PutMyMsgType(msgtype *MyMsgType) bool

func (*MyRoot) PutMyPacket

func (this *MyRoot) PutMyPacket(pack *MyPacket) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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