supervisor

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Detach(ctx context.Context) error
	Close() error
}

func NewUnix

func NewUnix(sockPath string, opts ...Option) Client

NewUnix returns a ctx-aware client that dials a Unix socket per call.

type Dialer

type Dialer func(ctx context.Context) (net.Conn, error)

type Option

type Option func(*unixOpts)

func WithDialTimeout

func WithDialTimeout(d time.Duration) Option