console

package
v0.0.0-...-e589b7e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort        = 14030
	DefaultXboxOnePort = 4601
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandType

type CommandType int
const (
	Command CommandType = iota
	Script
)

type Console

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

func NewConsole

func NewConsole(host, protocol string) (*Console, error)

func (*Console) Close

func (con *Console) Close()

func (*Console) Host

func (con *Console) Host() string

func (*Console) Receive

func (con *Console) Receive() (sjson.Value, []byte, error)

func (*Console) ReceiveMessage

func (con *Console) ReceiveMessage() (Message, error)

func (*Console) SendCommand

func (con *Console) SendCommand(ty CommandType, command string) error

func (*Console) SetDeadline

func (con *Console) SetDeadline(t time.Time)

type Message

type Message struct {
	System,
	Level,
	MessageType,
	Message string
}

func (Message) String

func (m Message) String() string

type Profiler

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

func NewProfiler

func NewProfiler(con *Console) *Profiler

func (*Profiler) Pull

func (prof *Profiler) Pull(pe *ProfilerEvent) (sjson.Value, *ProfilerEvent, error)

type ProfilerEvent

type ProfilerEvent struct {
	Type     uint32
	Name     uint64
	ThreadID uint32
	CoreID   uint32

	Parent      int32
	FirstChild  int32
	LastChild   int32
	PrevSibling int32
	NextSibling int32

	Time    float64
	Elapsed float64
	Count   uint32
}

Jump to

Keyboard shortcuts

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