package debug

import "github.com/Diarkis/diarkis/client/go/modules/debug"

Index

Types

type Debug

type Debug struct {
}

Debug represents the data structure of Debug

func NewDebugAsTCP

func NewDebugAsTCP(tcp *tcp.Client) *Debug

NewDebugAsTCP creates a new Debug instance for TCP client

func NewDebugAsUDP

func NewDebugAsUDP(udp *udp.Client) *Debug

NewDebugAsUDP creates a new Debug instance for UDP client

func (*Debug) DumpRoom

func (d *Debug) DumpRoom()

DumpRoom dumps the content of the room

func (*Debug) DumpUser

func (d *Debug) DumpUser()

DumpUser dumps the user data content

func (*Debug) Offline

func (d *Debug) Offline()

Offline sets the server status to OFFLINE

func (*Debug) OnDumpRoomResponse

func (d *Debug) OnDumpRoomResponse(callback func(success bool, roomData *room.DataDump))

OnDumpRoomResponse assigns a callback on DumpRoom

func (*Debug) OnDumpUserResponse

func (d *Debug) OnDumpUserResponse(callback func(success bool, userData *server.UserDataDump))

OnDumpUserResponse assigns a callback to DumpUser

func (*Debug) Online

func (d *Debug) Online()

Online sets the server status to ONLINE

func (*Debug) Taken

func (d *Debug) Taken()

Taken sets the server status to TAKEN

func (*Debug) Terminate

func (d *Debug) Terminate()

Terminate instructs the server to stop