Documentation ¶ Index ¶ type Daemon func New(ctx context.Context, cliCtx *cli.Context) (srv *Daemon, err error) func (d *Daemon) Addr() string func (d *Daemon) Port() int func (d *Daemon) Serve() error func (d *Daemon) Shutdown(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Daemon ¶ type Daemon struct { // contains filtered or unexported fields } func New ¶ func New(ctx context.Context, cliCtx *cli.Context) (srv *Daemon, err error) func (*Daemon) Addr ¶ func (d *Daemon) Addr() string func (*Daemon) Port ¶ func (d *Daemon) Port() int func (*Daemon) Serve ¶ func (d *Daemon) Serve() error Serve starts the server and blocks until the server is closed, either explicitly via Shutdown, or due to a fault condition. It propagates the non-nil err return value from http.Serve. func (*Daemon) Shutdown ¶ func (d *Daemon) Shutdown(ctx context.Context) error Source Files ¶ View all Source files daemon.go tasks.go Click to show internal directories. Click to hide internal directories.