unixchild

package
v0.0.0-...-56472e5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CLIENT_STATE_STOPPED clientState = iota
	CLIENT_STATE_STARTED
	CLIENT_STATE_STOPPING
)

Variables

This section is empty.

Functions

func IsUcAcceptError

func IsUcAcceptError(err error) bool

func SetSysProcAttrSetPGID

func SetSysProcAttrSetPGID() *syscall.SysProcAttr

Types

type Client

type Client struct {
	FromChild chan []byte
	ErrChild  chan error
	// contains filtered or unexported fields
}

func New

func New(conf Config) *Client

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

func (c *Client) Stop()

func (*Client) TxToChild

func (c *Client) TxToChild(data []byte) error

type Config

type Config struct {
	SockPath      string
	ChildPath     string
	ChildArgs     []string
	Depth         int
	MaxMsgSz      int
	AcceptTimeout time.Duration
}

type UcAcceptError

type UcAcceptError struct {
	Text string
}

func NewUcAcceptError

func NewUcAcceptError(text string) *UcAcceptError

func (*UcAcceptError) Error

func (err *UcAcceptError) Error() string

Jump to

Keyboard shortcuts

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