Documentation ¶
Overview ¶
Package server contains utilities for serving a principal using a socket-based IPC system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPrincipal ¶
LoadPrincipal returns the principal persisted in the given credentials directory. If the private key is encrypted, it prompts for a decryption passphrase. If the principal doesn't exist and create is true, it creates the principal.
Types ¶
type IPCState ¶
type IPCState interface { // Close shuts the IPC system down. Close() // IdleStartTime returns the time when the IPC system became idle (no // connections). Returns the zero time instant if connections exits. IdleStartTime() time.Time // NumConnections returns the number of current connections. NumConnections() int }
IPCState represents the IPC system serving the principal.
Click to show internal directories.
Click to hide internal directories.