channel

package
v0.0.0-...-77edef9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	SocketPath string
	// contains filtered or unexported fields
}

Channel is a unix socket server wrapper object. It provides a buffered abstraction on top of a socket connection.

func NewChannel

func NewChannel() (*Channel, error)

NewChannel builds a Channel object

func (*Channel) Close

func (c *Channel) Close()

Close close the channel

func (*Channel) Read

func (c *Channel) Read() ([]byte, error)

Read reads data from the channel

func (*Channel) Write

func (c *Channel) Write(data []byte) error

Write writes data to the channel

Jump to

Keyboard shortcuts

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