Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONSOLE_CLEAR = iota // Represents a command to clear the console. CONSOLE_ERR // Represents a console error. CONSOLE_EXIT // Represents a command to exit the console. )
Variables ¶
View Source
var ( // Format string for Unix socket session summary. UNIXSUMMARY = ` Session summary Session ID: %s All Socket Communications: %s Errors: %s ` DEFAULT_LIMIT = 5 // Default limit for iterative operations. RCV_PAGESIZE = 1024 // Default page size for receiving data. CONN_TIMEOUT = time.Duration(2) // Default connection timeout duration. SOCKET_GET = "get" )
View Source
var (
ERR_PATHNOTSOCKET = errors.New("file resource not a socket") // Error when the provided resource is not a socket.
)
Functions ¶
func CreateSocketSubProc ¶
CreateSocketSubProc creates a socket for testing
Types ¶
type Console ¶
Console represents a console session over a network connection.
func NewConsole ¶
NewConsole creates a new Console instance with the given context, network connection, HTTP, and interactive mode flag.
func (*Console) Enter ¶
Enter starts the console session and handles communication based on the interactive mode. It returns the session ID, exit code, communication log, and any error encountered.
type Creator ¶
func NewCreator ¶
func NewCreator() *Creator
Click to show internal directories.
Click to hide internal directories.