ipc

package
v0.5.2-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(ipsid string, ipcid string, msg string) (string, error)

Types

type IPC

type IPC struct {
	Errors chan error
	// contains filtered or unexported fields
}

func NewIPCServer

func NewIPCServer() (*IPC, error)

func NewListenerIPCServer

func NewListenerIPCServer(l net.Listener, id string) (*IPC, error)

func (*IPC) Accept

func (p *IPC) Accept() error

func (*IPC) AppendConsumer

func (p *IPC) AppendConsumer(ipcc *IPCConsumer)

func (*IPC) Close

func (p *IPC) Close() error

func (*IPC) GetUUID

func (p *IPC) GetUUID() string

func (*IPC) IsClosed

func (p *IPC) IsClosed() bool

func (*IPC) OutConsumer

func (p *IPC) OutConsumer(ipcc *IPCConsumer)

func (*IPC) SetListener

func (p *IPC) SetListener(l net.Listener)

type IPCConsumer

type IPCConsumer struct {
	ID     string
	Stream chan *PipeData
}

func (*IPCConsumer) ExposeStoreVars

func (c *IPCConsumer) ExposeStoreVars(store base.IStore) chan bool

type PipeData

type PipeData struct {
	IPCSID  string
	IPCCID  string
	COMMAND string
	VARNAME string
	// contains filtered or unexported fields
}

func (*PipeData) Close

func (d *PipeData) Close() error

func (*PipeData) Resp

func (d *PipeData) Resp(r string) error

func (*PipeData) RespClose

func (d *PipeData) RespClose(r string) error

Jump to

Keyboard shortcuts

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