server

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RunAppDir    string   // ej: project/cmd
	RunArguments []string //ej: "dev","prod"
	Cache        bool     // default false = "no-cache" true = "cache"
}

type Server

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

func New

func New(c *Config, f ldFlags, b browser, w fileWatch) *Server

func (Server) AppFileName

func (a Server) AppFileName() (string, error)

func (*Server) AppName

func (d *Server) AppName() (string, error)

func (Server) ConfigTemplateContent

func (a Server) ConfigTemplateContent() string

func (*Server) Restart

func (d *Server) Restart(event_name string) error

func (*Server) SetDefault

func (a *Server) SetDefault() error

func (Server) SignalNotify

func (a Server) SignalNotify() chan os.Signal

func (*Server) StartProgram

func (a *Server) StartProgram()

func (*Server) StopProgram

func (d *Server) StopProgram() error

func (Server) Write

func (d Server) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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