daemon

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0, MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmojiSuccess    string = "✅"
	EmojiCanceled   string = "⚪"
	EmojiFailure    string = "❌"
	EmojiInProgress string = "⏳"
	EmojiScheduled  string = "🕒"
)

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(cfg *config.EnvConfig) (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 (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

type Item added in v0.6.0

type Item struct {
	Id      string
	Title   string
	Series  string
	RootURL string
	Unit    string
	Tags    []string
}

Jump to

Keyboard shortcuts

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