flisten

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package flisten provides a type that manages a file-based unix domain socket. The construction funcs enable flexible usage, so abstraction of this type will likely require some redesign of how it is interacted with.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInUse        = errors.New("flisten in use")
	ErrConnRefused  = errors.New("flisten connection refused")
	ErrConnLost     = errors.New("flisten connection lost")
	ErrFileNotExist = errors.New("flisten file does not exist")
)

Functions

This section is empty.

Types

type Dial

type Dial struct {
	net.Dialer
	// contains filtered or unexported fields
}

func NewDial

func NewDial() *Dial

func (*Dial) DialContext

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

type FListen

type FListen struct {
	net.Listener
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, spath *sockpath.SockPath, network string) (*FListen, error)

func NewWithCleanup

func NewWithCleanup(ctx context.Context, spath *sockpath.SockPath, network string) (*FListen, error)

Jump to

Keyboard shortcuts

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