local

package
v0.0.0-...-7c4ed6d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: BSD-3-Clause Imports: 7 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 IsLocal

func IsLocal(address string) bool

IsLocal returns true if the address is host local.

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)

func LocalName

func LocalName(config upspin.Config, service string) string

LocalName constructs the host local name for a service.

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