devserver

package
v0.0.0-...-e7aa5da Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(info ProjectInfo) error

Legacy function for backward compatibility

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 // "Backend", "Frontend", or "Server"
	Type ProjectType
	Cmd  string
	Args []string
	Dir  string // Working directory for this server
}

Jump to

Keyboard shortcuts

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