daemon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TermExplanation = "a term is any of: <testplan> or <testplan>/<testcase>"

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

func New

func New(listenAddr string) (srv *Daemon, err error)

New creates a new Daemon and attaches the following handlers:

* GET /list: sends a `list` request to the daemon. list all test plans and test cases. * GET /describe: sends a `describe` request to the daemon. describes a test plan or test case. * POST /build: sends a `build` request to the daemon. builds a test plan. * POST /run: sends a `run` request to the daemon. (builds and) runs test case with name `<testplan>/<testcase>`. A type-safe client for this server can be found in the `pkg/client` package.

func (*Daemon) Addr

func (s *Daemon) Addr() string

func (*Daemon) Port

func (s *Daemon) Port() int

func (*Daemon) Serve

func (s *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 (s *Daemon) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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