remote

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPort

func GetPort() int

GetPort returns the port chosen by the system

func StartServer

func StartServer(done chan interface{}) error

StartServer starts a http server

func StopServer

func StopServer()

StopServer gracefully asks the http server to shutdown

Types

type Client

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

Client for sending messages back to the parent process

func NewClient

func NewClient(port int) *Client

NewClient creates a new client to connect to localhost and port in parameter

func (*Client) Done

func (c *Client) Done() error

Done signals to the parent process that we're finished

func (*Client) LogEntry

func (c *Client) LogEntry(logEntry clog.LogEntry) error

LogEntry logs messages back to the parent process

func (*Client) SetPrefix added in v0.9.2

func (c *Client) SetPrefix(logPrefix string) clog.Handler

SetPrefix adds a prefix to all the log messages

func (*Client) Term

func (c *Client) Term(p []byte) error

Term sends plain text terminal output

Jump to

Keyboard shortcuts

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