Documentation
¶
Overview ¶
Package daemonpath names the files of the hive daemon for a data directory, so a client finds them without importing the daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSocketDir ¶
CheckSocketDir is the client half of PrepareSocketDir: a client must not send its requests to a socket another user planted in the shared fallback directory. A missing directory passes, since the dial then finds no daemon.
func OutLogPath ¶
OutLogPath is where a detached daemon's stdout and stderr go.
func PrepareSocketDir ¶
PrepareSocketDir makes the directory a socket lives in. The shared fallback directory must be ours and private: another user who created /tmp/hive-<uid> first could otherwise read the socket's traffic.
func SocketPath ¶
SocketPath is where the daemon for dataDir listens: <dataDir>/hived.sock, or /tmp/hive-<uid>/<hash>.sock when that path is too long for a unix socket. Symlinks are resolved first, so every spelling of one data dir gets the same socket.
Types ¶
This section is empty.