unix_socket

package
v0.0.0-...-26c8931 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	SocketPath string
}

type Listener

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

func NewListenerFromFile

func NewListenerFromFile(socketFile *os.File) (*Listener, error)

func NewListenerFromPath

func NewListenerFromPath(socketPath string) (*Listener, error)

This function should be called from the host namespace, to open the socket file in the right file system.

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) File

func (l *Listener) File() (*os.File, error)

func (*Listener) Listen

type Response

type Response struct {
	ErrMessage string
	Pid        int
}

Jump to

Keyboard shortcuts

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