socket

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDialer

func CreateDialer(endpoint string) (func(context.Context, string, string) (net.Conn, error), string, error)

CreateDialer creates a DialContext function for Unix domain sockets.

func DetectSocketPath

func DetectSocketPath(dataDir string) string

DetectSocketPath detects the socket/pipe endpoint for daemon communication. Priority: MCPPROXY_TRAY_ENDPOINT env → config file → default path

func GetDefaultSocketPath

func GetDefaultSocketPath(dataDir string) string

GetDefaultSocketPath returns the default socket/pipe path for the platform.

func IsSocketAvailable

func IsSocketAvailable(endpoint string) bool

IsSocketAvailable checks if the socket/pipe exists and is accessible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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