console

package
v0.0.0-...-31a40c9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy()

func Init

func Init()

func NewTCPServer

func NewTCPServer(address string) *server

Creates new tcp server instance

func Register

func Register(name string, help string, f interface{}, server *chanrpc.Server)

you must call the function before calling console.Init goroutine not safe

Types

type Client

type Client struct {
	Server *server
	// contains filtered or unexported fields
}

Client holds info about connection

func (*Client) Close

func (c *Client) Close() error

func (*Client) Conn

func (c *Client) Conn() net.Conn

func (*Client) Send

func (c *Client) Send(message string) error

Send text message to client

func (*Client) SendBytes

func (c *Client) SendBytes(b []byte) error

Send bytes to client

type Command

type Command interface {
	// contains filtered or unexported methods
}

type CommandCPUProf

type CommandCPUProf struct{}

cpuprof

type CommandHelp

type CommandHelp struct{}

help

type CommandProf

type CommandProf struct{}

prof

type ExternalCommand

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

Jump to

Keyboard shortcuts

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