server

package
v0.0.0-...-7e66950 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotAuthorizedError = fmt.Errorf("not authorized")

Functions

This section is empty.

Types

type PileServer

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

func NewWithRunner

func NewWithRunner(runner Runner) *PileServer

func (*PileServer) Serve

func (p *PileServer) Serve(ctx context.Context, l net.Listener, authConfig auth.Config) error

Serve makes the server implementation available on a given listener

type Runner

type Runner interface {
	Start(config runner.Config) (name string, err error)
	Stop(name string) (*runner.Status, error)
	Status(name string) (*runner.Status, error)
	Output(name string) (output <-chan []byte, cancel func(), err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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