Documentation ¶ Index ¶ type Daemon func NewDaemon(ctx context.Context, cfg *types.DaemonFlag) (Daemon, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Daemon ¶ type Daemon interface { context.Context // Start wrapped server, server will block util an error occurs or // invoking Shutdown() explicitly. Start() // Shutdown close all servers under the hood. Shutdown() } Daemon server behaviour abstraction. func NewDaemon ¶ func NewDaemon(ctx context.Context, cfg *types.DaemonFlag) (Daemon, error) NewDaemon creates a new daemon server that can handle incoming requests with grpc or http protocol. Source Files ¶ View all Source files grpc_server.goserver.go Click to show internal directories. Click to hide internal directories.