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 GetFreePort ¶ added in v0.4.0
GetFreePort asks the kernel for a free open port that is ready to use.
Types ¶
type Config ¶ added in v0.4.0
type Config struct {
Permissions Permissions `json:"permissions"`
}
type FetchInput ¶
type Permission ¶ added in v0.4.0
type Permission struct { All bool `json:"all"` Allow []string `json:"allow"` Deny []string `json:"deny"` }
func (*Permission) UnmarshalJSON ¶ added in v0.4.0
func (p *Permission) UnmarshalJSON(data []byte) error
type Permissions ¶ added in v0.4.0
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 ¶ added in v0.4.0
func (p *Permissions) Flags(rootDir string) []string
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) LoadPermission ¶ added in v0.4.0
func (me *Worker) LoadPermission() (*Permissions, error)
type WorkerEntrypoints ¶
Click to show internal directories.
Click to hide internal directories.