Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon interface { // Serve accepts incoming connections on the listener, lis. // This function blocks until the given listener, list, is closed. // The given listener, lis, is owned by the Daemon (server) as soon as this function is called, // and the server will close any active listeners as part of its Close method. Serve(lis net.Listener) error // Close closes the 0-stor daemon its resources and stops all it open connections gracefully. // It stops the daemon from accepting new connections and blocks until // all established connections and other resources have been closed. Close() error }
Daemon defines the 0-stor Daemon (Server) API interface.
Click to show internal directories.
Click to hide internal directories.