Documentation ¶
Index ¶
Constants ¶
View Source
const ( IDInit = int16(iota) IDInfo IDLog IDSetDebug IDSetMotd IDEvent IDSend IDWritePacket IDKick )
Variables ¶
View Source
var Pool = map[int16]func() Action{ IDInit: func() Action { return &Init{InitAction: &protobuf.InitAction{}} }, IDInfo: func() Action { return &Info{InfoAction: &protobuf.InfoAction{}} }, IDLog: func() Action { return &Log{LogAction: &protobuf.LogAction{}} }, IDSetDebug: func() Action { return &SetDebug{SetDebugAction: &protobuf.SetDebugAction{}} }, IDSetMotd: func() Action { return &SetMotd{SetMotdAction: &protobuf.SetMotdAction{}} }, IDEvent: func() Action { return &Event{EventAction: &protobuf.EventAction{}} }, IDSend: func() Action { return &Send{SendAction: &protobuf.SendAction{}} }, IDWritePacket: func() Action { return &WritePacket{WritePacketAction: &protobuf.WritePacketAction{}} }, IDKick: func() Action { return &Kick{KickAction: &protobuf.KickAction{}} }, }
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
*protobuf.EventAction
}
type Info ¶
type Info struct {
*protobuf.InfoAction
}
Info is sent by the proxy to inform the client of any changes in the proxy information.
func (*Info) DecodeConfig ¶
type Init ¶
type Init struct {
*protobuf.InitAction
}
Init is sent from the plugin to server in order to initialize the plugin.
type Log ¶
Log is sent from the plugin to log things to the console
func NewLogAction ¶
func NewLogAction(t protobuf.LogAction_Type, message string, sources []string) *Log
type SetDebug ¶
type SetDebug struct {
*protobuf.SetDebugAction
}
type SetMotd ¶
type SetMotd struct {
*protobuf.SetMotdAction
}
type WritePacket ¶
type WritePacket struct {
*protobuf.WritePacketAction
}
func (*WritePacket) Encode ¶
func (i *WritePacket) Encode(packet packet.Packet) *WritePacket
func (*WritePacket) ID ¶
func (i *WritePacket) ID() int16
func (WritePacket) New ¶
func (i WritePacket) New(xuid string) *WritePacket
Source Files ¶
Click to show internal directories.
Click to hide internal directories.