...

Package debug

import "github.com/Diarkis/diarkis/proto/go/debug"
Overview
Index

Overview ▾

Code generated by Diarkis Puffer module: DO NOT EDIT.

Auto-generated by Diarkis Version 1.0.0

- Maximum length of a string is 65535 bytes - Maximum length of a byte array is 65535 bytes - Maximum length of any array is 65535 elements

Code generated by Diarkis Puffer module: DO NOT EDIT.

Auto-generated by Diarkis Version 1.0.0

- Maximum length of a string is 65535 bytes - Maximum length of a byte array is 65535 bytes - Maximum length of any array is 65535 elements

Code generated by Diarkis Puffer module: DO NOT EDIT.

Auto-generated by Diarkis Version 1.0.0

- Maximum length of a string is 65535 bytes - Maximum length of a byte array is 65535 bytes - Maximum length of any array is 65535 elements

Code generated by Diarkis Puffer module: DO NOT EDIT.

Auto-generated by Diarkis Version 1.0.0

- Maximum length of a string is 65535 bytes - Maximum length of a byte array is 65535 bytes - Maximum length of any array is 65535 elements

Code generated by Diarkis Puffer module: DO NOT EDIT.

Auto-generated by Diarkis Version 1.0.0

- Maximum length of a string is 65535 bytes - Maximum length of a byte array is 65535 bytes - Maximum length of any array is 65535 elements

Code generated by Diarkis Puffer module: DO NOT EDIT.

Auto-generated by Diarkis Version 1.0.0

- Maximum length of a string is 65535 bytes - Maximum length of a byte array is 65535 bytes - Maximum length of any array is 65535 elements

Index ▾

Constants
type Offline
    func NewOffline() *Offline
    func (proto *Offline) GetCmd() uint16
    func (proto *Offline) GetVer() uint8
    func (proto *Offline) Pack() []byte
    func (proto *Offline) String() string
    func (proto *Offline) Unpack(bytes []byte) error
type Online
    func NewOnline() *Online
    func (proto *Online) GetCmd() uint16
    func (proto *Online) GetVer() uint8
    func (proto *Online) Pack() []byte
    func (proto *Online) String() string
    func (proto *Online) Unpack(bytes []byte) error
type RoomDump
    func NewRoomDump() *RoomDump
    func (proto *RoomDump) GetCmd() uint16
    func (proto *RoomDump) GetVer() uint8
    func (proto *RoomDump) Pack() []byte
    func (proto *RoomDump) String() string
    func (proto *RoomDump) Unpack(bytes []byte) error
type Taken
    func NewTaken() *Taken
    func (proto *Taken) GetCmd() uint16
    func (proto *Taken) GetVer() uint8
    func (proto *Taken) Pack() []byte
    func (proto *Taken) String() string
    func (proto *Taken) Unpack(bytes []byte) error
type Terminate
    func NewTerminate() *Terminate
    func (proto *Terminate) GetCmd() uint16
    func (proto *Terminate) GetVer() uint8
    func (proto *Terminate) Pack() []byte
    func (proto *Terminate) String() string
    func (proto *Terminate) Unpack(bytes []byte) error
type UserDump
    func NewUserDump() *UserDump
    func (proto *UserDump) GetCmd() uint16
    func (proto *UserDump) GetVer() uint8
    func (proto *UserDump) Pack() []byte
    func (proto *UserDump) String() string
    func (proto *UserDump) Unpack(bytes []byte) error

Constants

OfflineCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const OfflineCmd uint16 = 902

OfflineVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const OfflineVer uint8 = 1

OnlineCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const OnlineCmd uint16 = 900

OnlineVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const OnlineVer uint8 = 1

RoomDumpCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const RoomDumpCmd uint16 = 904

RoomDumpVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const RoomDumpVer uint8 = 1

TakenCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const TakenCmd uint16 = 901

TakenVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const TakenVer uint8 = 1

TerminateCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const TerminateCmd uint16 = 903

TerminateVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const TerminateVer uint8 = 1

UserDumpCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const UserDumpCmd uint16 = 905

UserDumpVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const UserDumpVer uint8 = 1

type Offline

Offline represents the command protocol data structure.

type Offline struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
}

func NewOffline

func NewOffline() *Offline

NewOffline creates a new instance of Offline struct.

func (*Offline) GetCmd

func (proto *Offline) GetCmd() uint16

func (*Offline) GetVer

func (proto *Offline) GetVer() uint8

func (*Offline) Pack

func (proto *Offline) Pack() []byte

Pack encodes Offline struct to a byte array to be delivered over the command.

func (*Offline) String

func (proto *Offline) String() string

func (*Offline) Unpack

func (proto *Offline) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to Offline struct.

type Online

Online represents the command protocol data structure.

type Online struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
}

func NewOnline

func NewOnline() *Online

NewOnline creates a new instance of Online struct.

func (*Online) GetCmd

func (proto *Online) GetCmd() uint16

func (*Online) GetVer

func (proto *Online) GetVer() uint8

func (*Online) Pack

func (proto *Online) Pack() []byte

Pack encodes Online struct to a byte array to be delivered over the command.

func (*Online) String

func (proto *Online) String() string

func (*Online) Unpack

func (proto *Online) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to Online struct.

type RoomDump

RoomDump represents the command protocol data structure.

type RoomDump struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
}

func NewRoomDump

func NewRoomDump() *RoomDump

NewRoomDump creates a new instance of RoomDump struct.

func (*RoomDump) GetCmd

func (proto *RoomDump) GetCmd() uint16

func (*RoomDump) GetVer

func (proto *RoomDump) GetVer() uint8

func (*RoomDump) Pack

func (proto *RoomDump) Pack() []byte

Pack encodes RoomDump struct to a byte array to be delivered over the command.

func (*RoomDump) String

func (proto *RoomDump) String() string

func (*RoomDump) Unpack

func (proto *RoomDump) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to RoomDump struct.

type Taken

Taken represents the command protocol data structure.

type Taken struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
}

func NewTaken

func NewTaken() *Taken

NewTaken creates a new instance of Taken struct.

func (*Taken) GetCmd

func (proto *Taken) GetCmd() uint16

func (*Taken) GetVer

func (proto *Taken) GetVer() uint8

func (*Taken) Pack

func (proto *Taken) Pack() []byte

Pack encodes Taken struct to a byte array to be delivered over the command.

func (*Taken) String

func (proto *Taken) String() string

func (*Taken) Unpack

func (proto *Taken) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to Taken struct.

type Terminate

Terminate represents the command protocol data structure.

type Terminate struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
}

func NewTerminate

func NewTerminate() *Terminate

NewTerminate creates a new instance of Terminate struct.

func (*Terminate) GetCmd

func (proto *Terminate) GetCmd() uint16

func (*Terminate) GetVer

func (proto *Terminate) GetVer() uint8

func (*Terminate) Pack

func (proto *Terminate) Pack() []byte

Pack encodes Terminate struct to a byte array to be delivered over the command.

func (*Terminate) String

func (proto *Terminate) String() string

func (*Terminate) Unpack

func (proto *Terminate) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to Terminate struct.

type UserDump

UserDump represents the command protocol data structure.

type UserDump struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
}

func NewUserDump

func NewUserDump() *UserDump

NewUserDump creates a new instance of UserDump struct.

func (*UserDump) GetCmd

func (proto *UserDump) GetCmd() uint16

func (*UserDump) GetVer

func (proto *UserDump) GetVer() uint8

func (*UserDump) Pack

func (proto *UserDump) Pack() []byte

Pack encodes UserDump struct to a byte array to be delivered over the command.

func (*UserDump) String

func (proto *UserDump) String() string

func (*UserDump) Unpack

func (proto *UserDump) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to UserDump struct.