fs

package
v0.0.0-...-203cdba Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client  *http.Client
	Fetcher opossum.Fetcher
)

Functions

func Query

func Query(lq *fs.ListenFileListener)

func SetDOM

func SetDOM(d *nodes.Node)

func Srv9p

func Srv9p()

func Update

func Update(uri, html string, css []string, js []string)

func Xhr

func Xhr(lxhr *fs.ListenFileListener)

Types

type Attrs

type Attrs struct {
	// contains filtered or unexported fields
}

func (Attrs) Children

func (as Attrs) Children() (cs map[string]fs.FSNode)

func (Attrs) Parent

func (as Attrs) Parent() fs.Dir

func (Attrs) SetParent

func (as Attrs) SetParent(p fs.Dir)

func (Attrs) Stat

func (as Attrs) Stat() (s proto.Stat)

func (Attrs) WriteStat

func (as Attrs) WriteStat(s *proto.Stat) error

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node such that one obtains a file structure like

/0 /0/attrs /0/geom /0/html /0/style /0/tag /0/0

...

/0/1

...

...

(dir structure stolen from domfs)

func (Node) AddChild

func (n Node) AddChild(fs.FSNode) error

func (Node) Children

func (n Node) Children() (cs map[string]fs.FSNode)

func (Node) DeleteChild

func (n Node) DeleteChild(name string) error

func (Node) Parent

func (n Node) Parent() fs.Dir

func (Node) SetParent

func (n Node) SetParent(p fs.Dir)

func (Node) Stat

func (n Node) Stat() (s proto.Stat)

func (Node) WriteStat

func (n Node) WriteStat(s *proto.Stat) error

type Style

type Style struct {
	// contains filtered or unexported fields
}

func (Style) Children

func (st Style) Children() (cs map[string]fs.FSNode)

func (Style) Parent

func (st Style) Parent() fs.Dir

func (Style) SetParent

func (st Style) SetParent(p fs.Dir)

func (Style) Stat

func (st Style) Stat() (s proto.Stat)

func (Style) WriteStat

func (st Style) WriteStat(s *proto.Stat) error

Jump to

Keyboard shortcuts

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