serve

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asm

func Asm(exe, srcPath, outFile string, check bool, cs *Channels) (ret string, err error)

func Decode

func Decode(r io.Reader) (ret string, err error)

read a request from the client see live.Vue... example: io.send({cmd: txt});

func ListenAndServe

func ListenAndServe(endpoint string, cs *Channels) error

func Marshal

func Marshal(m play.PlayMessage) (ret string, err error)

func Play

func Play(exe, inFile string, cs *Channels) (err error)

run the passed command pass strings from "in" to the command's stdin transform its stdout to PlayOut messages; stderr as PlayLog. returns after starting the command ( returning any startup errors )

Types

type Channels

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

see NewChannels

func NewChannels

func NewChannels() *Channels

func (*Channels) ChangeMode

func (cs *Channels) ChangeMode(m play.PlayModes)

func (*Channels) Fatal

func (cs *Channels) Fatal(e error)

func (*Channels) WriteMessages

func (cs *Channels) WriteMessages(w io.Writer, wait bool) (err error)

Jump to

Keyboard shortcuts

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