Documentation
¶
Overview ¶
Package disp is for dispatching and displaying trice log lines
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IpAddr is the display server ip addr IpAddr string = "localhost" // default value for testing // IpPort is the display server ip addr IpPort string = "61497" // default value for testing // Visualize is an exported function pointer, which can be redirected for example to a client call Out = out // PtrRpc is a pointer PtrRpc *rpc.Client )
View Source
var ( // ColorPalette is the used PC color set. It is initialized with its default value inside the appropriate subcommand. ColorPalette = "off" // default value for testing )
Functions ¶
func Connect ¶
func Connect() error
Connect is called by the client and tries to dial. On success PtrRpc is valid afterwards and zhe output is re-directed
func RemoteOut ¶
RemoteOut does send the logstring s to the displayServer It is replacing emit.Visuaize when trice acts as remote
Types ¶
type Server ¶
type Server struct{}
Server is the RPC struct for registered server dunctions
func (*Server) ColorPalette ¶
Color is the exported server function for color palette, if trice tool acts as display server. By declaring it as a Server struct method it is registered as RPC destination.
Click to show internal directories.
Click to hide internal directories.