Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EXTENSIONS = []string{".js", ".ts", ".jsx", ".tsx"}
View Source
var SMALLWEB_ROOT string
View Source
var SmallwebDir string
Functions ¶
func DenoExecutable ¶
func FileExists ¶
func GetFreePort ¶
GetFreePort asks the kernel for a free open port that is ready to use.
Types ¶
type Config ¶
type Config struct {
Permissions Permissions `json:"permissions"`
}
type FetchInput ¶
type Permission ¶
type Permission struct {
All bool `json:"all"`
Allow []string `json:"allow"`
Deny []string `json:"deny"`
}
func (*Permission) UnmarshalJSON ¶
func (p *Permission) UnmarshalJSON(data []byte) error
type Permissions ¶
type Permissions struct {
All bool `json:"all"`
Read Permission `json:"read"`
Write Permission `json:"write"`
Net Permission `json:"net"`
Env Permission `json:"env"`
Run Permission `json:"run"`
Sys Permission `json:"sys"`
Ffi Permission `json:"ffi"`
}
func (*Permissions) Flags ¶
func (p *Permissions) Flags(rootDir string) []string
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) LoadPermission ¶
func (me *Worker) LoadPermission() (*Permissions, error)
type WorkerEntrypoints ¶
Click to show internal directories.
Click to hide internal directories.