socket

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

Factory connects to external stack using socket server.

func NewSocketServer

func NewSocketServer(ls net.Listener, log *zap.Logger) *Factory

NewSocketServer returns Factory attached to a given socket listener.

func (*Factory) Close

func (f *Factory) Close() error

Close socket factory and underlying socket connection.

func (*Factory) SpawnWorkerWithContext

func (f *Factory) SpawnWorkerWithContext(ctx context.Context, cmd *exec.Cmd, options ...worker.Options) (*worker.Process, error)

SpawnWorkerWithContext Creates a Process and connects it to the appropriate relay or return an error

Jump to

Keyboard shortcuts

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