unix

package
v0.0.0-...-c0ffc74 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package unix implements the UNIX domain sockets transport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Name of the UNIX domain socket.
	// Name defaults to a random path of format "/tmp/telehash-<random>.sock"
	Name string

	// Mode is the mode for the socket.
	// Deault to srwx------ (user only)
	Mode os.FileMode
}

Config for the UDP transport. Typically the zero value is sufficient to get started.

e3x.New(keys, unix.Config{Name: "/tmp/telehash/<hashname>.sock"})

func (Config) Open

func (c Config) Open() (transports.Transport, error)

Open opens the transport.

Jump to

Keyboard shortcuts

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