ipc

package
Version: v0.0.0-...-8a9b2a7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPC

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

IPC is a Inter Process Communications client

func NewIPC

func NewIPC() (*IPC, error)

NewIPC returns a IPC client

func (*IPC) CloseSocket

func (ipc *IPC) CloseSocket() error

CloseSocket close IPC socket

func (*IPC) Read

func (ipc *IPC) Read() []byte

Read the socket response

func (*IPC) Send

func (ipc *IPC) Send(opcode int, payload string) ([]byte, error)

Send opcode and payload to the unix socket

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL