filo

package
v0.0.0-...-2aee492 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2016 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoXandle = errors.New("No xandle available")

Functions

func Set

func Set(fs ...Filo)

Types

type FileRead

type FileRead func(Header) *bytes.Buffer

A function used internally by a File to read.

type FileWrite

type FileWrite func(Header, []byte) (int, error)

A function used internally by a File to write.

type Filo

type Filo interface {
	Key() string
	Init(Header)
	Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
	Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
	Size() uint64
}
var NilFilo Filo = New("", nil, nil)

func Get

func Get(key string) Filo

func New

func New(key string, read FileRead, write FileWrite) Filo

New creates a new Filo with key, read, and write functions.

type Header interface {
	Xandle() xandle.Xandle
	SetXandle(xandle.Xandle)
	Window() window.Window
	SetWindow(window.Window)
	Monitor() monitor.Monitor
	SetMonitor(monitor.Monitor)
}

A local interface mirroring node.Header.

Jump to

Keyboard shortcuts

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