pwrapapi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdSockPath

func CmdSockPath(path string) func(*Server)

func Port

func Port(p int) func(*Server)

Port sets server's listening port option.

func RouteProgress

func RouteProgress(path string) func(*Router)

Types

type Router

type Router struct {
	*mux.Router
}

func NewRouter

func NewRouter(opts ...func(*Router)) *Router

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

Server is an http.Server implementation which allows to interact with a local process through HTTP. Each server tracks only one child cmd.

func NewServer

func NewServer(opts ...func(*Server)) *Server

NewServer creates a new Server instance.

Jump to

Keyboard shortcuts

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