server

package
v0.2.3-rc8 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandshakeFailureHandler added in v0.2.3

type HandshakeFailureHandler func(child *SipcChild, cause error)

type SipcChild

type SipcChild struct {
	io.ReadWriteCloser
	// contains filtered or unexported fields
}

func (*SipcChild) AttachProcess

func (child *SipcChild) AttachProcess(process *os.Process) error

func (*SipcChild) AttachProcessWithPid

func (child *SipcChild) AttachProcessWithPid(pid int) error

func (*SipcChild) Close

func (child *SipcChild) Close() error

func (*SipcChild) GetEncodedConnectInfo

func (child *SipcChild) GetEncodedConnectInfo() string

func (*SipcChild) IsClosed added in v0.2.3

func (child *SipcChild) IsClosed() bool

func (*SipcChild) Read

func (child *SipcChild) Read(p []byte) (int, error)

func (*SipcChild) Start

func (child *SipcChild) Start() error

func (*SipcChild) Write

func (child *SipcChild) Write(p []byte) (n int, err error)

type SipcChildConfig added in v0.2.3

type SipcChildConfig struct {
	HandshakeFailureHandler HandshakeFailureHandler
}

type SipcServer

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

func NewSipcServer

func NewSipcServer(config SipcServerConfig) (*SipcServer, error)

func (*SipcServer) CreateProcess

func (server *SipcServer) CreateProcess(cmd *exec.Cmd, config *SipcChildConfig) (*SipcChild, error)

func (*SipcServer) PrepareProcess

func (server *SipcServer) PrepareProcess(config *SipcChildConfig) (*SipcChild, error)

func (*SipcServer) Shutdown

func (server *SipcServer) Shutdown()

type SipcServerConfig

type SipcServerConfig struct {
	Path             string
	LocalPrivateKey  []byte
	HandshakeTimeout time.Duration
	Transport        transport.Transport
	AllowReconnect   bool
}

type State

type State int

Jump to

Keyboard shortcuts

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