devserver

package
v0.0.0-...-d9dc390 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(info ProjectInfo) error

Types

type LogLine

type LogLine struct {
	ServerName string
	Line       string
	IsError    bool
}

type ProjectInfo

type ProjectInfo struct {
	Type    ProjectType
	Servers []ServerConfig
}

func Detect

func Detect(path string) ProjectInfo

type ProjectType

type ProjectType string
const (
	TypeNode      ProjectType = "Node.js"
	TypeExpress   ProjectType = "Express"
	TypeNextJS    ProjectType = "Next.js"
	TypeNestJS    ProjectType = "Nest.js"
	TypeAngular   ProjectType = "Angular"
	TypeVue       ProjectType = "Vue.js"
	TypePython    ProjectType = "Python"
	TypeGo        ProjectType = "Go"
	TypeDjango    ProjectType = "Django"
	TypeFastAPI   ProjectType = "FastAPI"
	TypeFlask     ProjectType = "Flask"
	TypeReact     ProjectType = "React"
	TypeVite      ProjectType = "Vite"
	TypeWebpack   ProjectType = "Webpack"
	TypeSpring    ProjectType = "Spring Boot"
	TypeFullstack ProjectType = "Fullstack"
	TypeUnknown   ProjectType = "Unknown"
)

type Runner

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

func NewRunner

func NewRunner() *Runner

func (*Runner) GetLogChannel

func (r *Runner) GetLogChannel() <-chan LogLine

func (*Runner) IsRunning

func (r *Runner) IsRunning() bool

func (*Runner) Start

func (r *Runner) Start(info ProjectInfo) error

func (*Runner) Stop

func (r *Runner) Stop()

type ServerConfig

type ServerConfig struct {
	Name string
	Type ProjectType
	Cmd  string
	Args []string
	Dir  string
}

Jump to

Keyboard shortcuts

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