server

package
v0.1.111 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerNotFound = errors.New("server not found")

Functions

func Discover added in v0.1.69

func Discover(cfgPath string, stage string) (string, error)

func NewRegistry added in v0.1.69

func NewRegistry() *registry

Types

type HttpConn added in v0.1.81

type HttpConn struct {
	io.Reader
	io.Writer
}

func (*HttpConn) Close added in v0.1.81

func (c *HttpConn) Close() error

type Server

type Server struct {
	Port int
	Mux  *http.ServeMux
	Rpc  *rpc.Server
}

func New

func New() (*Server, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context, p *project.Project) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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