Documentation
¶
Index ¶
- type HostBuilder
- type Module
- type WasiServer
- func (s *WasiServer) Change(string) error
- func (s *WasiServer) Label() string
- func (s *WasiServer) Name() string
- func (s *WasiServer) NewFileEvent(fileName, extension, filePath, event string) error
- func (s *WasiServer) RefreshUI()
- func (s *WasiServer) RegisterRoutes(fn func(*http.ServeMux)) *WasiServer
- func (s *WasiServer) RestartServer() error
- func (s *WasiServer) SetAppRootDir(dir string) *WasiServer
- func (s *WasiServer) SetBus(b bus.Bus) *WasiServer
- func (s *WasiServer) SetDrainTimeout(d time.Duration) *WasiServer
- func (s *WasiServer) SetExitChan(ch chan bool) *WasiServer
- func (s *WasiServer) SetLogger(fn func(msg ...any)) *WasiServer
- func (s *WasiServer) SetModulesDir(dir string) *WasiServer
- func (s *WasiServer) SetOutputDir(dir string) *WasiServer
- func (s *WasiServer) SetPort(port string) *WasiServer
- func (s *WasiServer) SetUI(ui interface{ ... }) *WasiServer
- func (s *WasiServer) StartServer(wg *sync.WaitGroup)
- func (s *WasiServer) StopServer() error
- func (s *WasiServer) SupportedExtensions() []string
- func (s *WasiServer) UnobservedFiles() []string
- func (s *WasiServer) Value() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostBuilder ¶ added in v0.0.2
type HostBuilder struct {
// contains filtered or unexported fields
}
func NewHostBuilder ¶ added in v0.0.2
func (*HostBuilder) Build ¶ added in v0.0.2
func (h *HostBuilder) Build(rt wazero.Runtime) wazero.HostModuleBuilder
type Module ¶ added in v0.0.2
type Module struct {
// contains filtered or unexported fields
}
type WasiServer ¶ added in v0.0.2
type WasiServer struct {
// contains filtered or unexported fields
}
func New ¶
func New() *WasiServer
New creates a WasiServer with all defaults. Configure via Set* methods.
func (*WasiServer) Change ¶ added in v0.0.2
func (s *WasiServer) Change(string) error
func (*WasiServer) Label ¶ added in v0.0.2
func (s *WasiServer) Label() string
func (*WasiServer) Name ¶ added in v0.0.2
func (s *WasiServer) Name() string
func (*WasiServer) NewFileEvent ¶ added in v0.0.2
func (s *WasiServer) NewFileEvent(fileName, extension, filePath, event string) error
func (*WasiServer) RefreshUI ¶ added in v0.0.2
func (s *WasiServer) RefreshUI()
func (*WasiServer) RegisterRoutes ¶ added in v0.0.2
func (s *WasiServer) RegisterRoutes(fn func(*http.ServeMux)) *WasiServer
RegisterRoutes appends fn to the internal route list. Called before StartServer; matching the assetmin pattern.
func (*WasiServer) RestartServer ¶ added in v0.0.2
func (s *WasiServer) RestartServer() error
func (*WasiServer) SetAppRootDir ¶ added in v0.0.2
func (s *WasiServer) SetAppRootDir(dir string) *WasiServer
func (*WasiServer) SetBus ¶ added in v0.0.2
func (s *WasiServer) SetBus(b bus.Bus) *WasiServer
func (*WasiServer) SetDrainTimeout ¶ added in v0.0.2
func (s *WasiServer) SetDrainTimeout(d time.Duration) *WasiServer
func (*WasiServer) SetExitChan ¶ added in v0.0.2
func (s *WasiServer) SetExitChan(ch chan bool) *WasiServer
func (*WasiServer) SetLogger ¶ added in v0.0.2
func (s *WasiServer) SetLogger(fn func(msg ...any)) *WasiServer
func (*WasiServer) SetModulesDir ¶ added in v0.0.2
func (s *WasiServer) SetModulesDir(dir string) *WasiServer
func (*WasiServer) SetOutputDir ¶ added in v0.0.2
func (s *WasiServer) SetOutputDir(dir string) *WasiServer
func (*WasiServer) SetPort ¶ added in v0.0.2
func (s *WasiServer) SetPort(port string) *WasiServer
func (*WasiServer) SetUI ¶ added in v0.0.2
func (s *WasiServer) SetUI(ui interface{ RefreshUI() }) *WasiServer
func (*WasiServer) StartServer ¶ added in v0.0.2
func (s *WasiServer) StartServer(wg *sync.WaitGroup)
StartServer starts the server.
func (*WasiServer) StopServer ¶ added in v0.0.2
func (s *WasiServer) StopServer() error
func (*WasiServer) SupportedExtensions ¶ added in v0.0.2
func (s *WasiServer) SupportedExtensions() []string
func (*WasiServer) UnobservedFiles ¶ added in v0.0.2
func (s *WasiServer) UnobservedFiles() []string
func (*WasiServer) Value ¶ added in v0.0.2
func (s *WasiServer) Value() string
Click to show internal directories.
Click to hide internal directories.