daemon

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL