local

package
v0.0.0-...-70e5bc8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

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