vfs

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	AddHandler(path string, h Handler) error
	FindHandler(uri lang.URI) (Handler, error)
}

type ContextImpl

type ContextImpl struct {
	markup.Component `id:"vfs-context"`
	// contains filtered or unexported fields
}

func (*ContextImpl) AddHandler

func (inst *ContextImpl) AddHandler(path string, h Handler) error

func (*ContextImpl) FindHandler

func (inst *ContextImpl) FindHandler(uri lang.URI) (Handler, error)

type Handler

type Handler interface {
	Init(ctx Context) error
	Handle(uri lang.URI, result *dto.Dir) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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