Documentation
¶
Overview ¶
Package runner …
Index ¶
Constants ¶
View Source
const (
//PlatformWindows const for windows
PlatformWindows = "windows"
)
Variables ¶
View Source
var ProxyScript string
Functions ¶
Types ¶
type BuildFailedMsg ¶
type Config ¶
type Config struct { Root string `toml:"root" usage:"Working directory, . or absolute path, please note that the directories following must be under root"` TmpDir string `toml:"tmp_dir" usage:"Temporary directory for air"` TestDataDir string `toml:"testdata_dir"` Build cfgBuild `toml:"build"` Color cfgColor `toml:"color"` Log cfgLog `toml:"log"` Misc cfgMisc `toml:"misc"` Screen cfgScreen `toml:"screen"` Proxy cfgProxy `toml:"proxy"` }
Config is the main configuration structure for Air.
func InitConfig ¶
InitConfig initializes the configuration.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine ...
func NewEngineWithConfig ¶
NewEngineWithConfig ...
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) BuildFailed ¶
func (p *Proxy) BuildFailed(msg BuildFailedMsg)
type ProxyStream ¶
type ProxyStream struct {
// contains filtered or unexported fields
}
func NewProxyStream ¶
func NewProxyStream() *ProxyStream
func (*ProxyStream) AddSubscriber ¶
func (stream *ProxyStream) AddSubscriber() *Subscriber
func (*ProxyStream) BuildFailed ¶
func (stream *ProxyStream) BuildFailed(err BuildFailedMsg)
func (*ProxyStream) Reload ¶
func (stream *ProxyStream) Reload()
func (*ProxyStream) RemoveSubscriber ¶
func (stream *ProxyStream) RemoveSubscriber(id int32)
func (*ProxyStream) Stop ¶
func (stream *ProxyStream) Stop()
type StreamMessage ¶
type StreamMessage struct { Type StreamMessageType Data interface{} }
func (StreamMessage) AsSSE ¶
func (m StreamMessage) AsSSE() string
type StreamMessageType ¶
type StreamMessageType string
const ( StreamMessageReload StreamMessageType = "reload" StreamMessageBuildFailed StreamMessageType = "build-failed" )
type Streamer ¶
type Streamer interface { AddSubscriber() *Subscriber RemoveSubscriber(id int32) Reload() BuildFailed(msg BuildFailedMsg) Stop() }
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.