unixsocket

package
v0.0.0-...-73d4566 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNilContext = lerr.Str("got nil Context")
)

Variables

Functions

func Client

func Client(ctx cli.Context) error

func ConnPipe

func ConnPipe(conn io.ReadWriter) channel.Pipe[[]byte]

func NewCLIContext

func NewCLIContext(conn io.ReadWriter, parser reflector.Parser[string]) cli.Context

Types

type FileSystem

type FileSystem interface {
	lfile.FSRemover
}

type RunnerInitilizer

type RunnerInitilizer func(*cli.Runner)

type Socket

type Socket struct {
	Addr    string
	Handler func(conn net.Conn)

	FS FileSystem
	// contains filtered or unexported fields
}

func CLISocket

func CLISocket(addr string, rnr cli.CLIRunner) *Socket

func New

func New(addr string, handler func(conn net.Conn)) *Socket

func (*Socket) Close

func (s *Socket) Close()

Close a running socket.

func (*Socket) Run

func (s *Socket) Run() error

Run the socket

func (*Socket) Runner

func (s *Socket) Runner(ri RunnerInitilizer) *Socket

Jump to

Keyboard shortcuts

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