local

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package local provides interprocess communication on the local host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(network, address string) (net.Listener, error)

Listen listens for calls to a service. Use it instead of the standard net.Listen to use a local IPC for host names ending in localSuffix.

func ListenLocal

func ListenLocal(address string) (net.Listener, error)

Types

type Dialer

type Dialer net.Dialer

func (*Dialer) DialContext

func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)

DialContext dials a service. Use it instead of the standard net.DialContext to use a local IPC for host names ending in localSuffix.

func (*Dialer) DialContextLocal

func (d *Dialer) DialContextLocal(ctx context.Context, network, address string) (net.Conn, error)

DialContextLocal dials using a unix domain socket.

Jump to

Keyboard shortcuts

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