files

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CtrlFile

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

func Ctrl

func Ctrl(cb func([]byte) error, data func() []byte) (*CtrlFile, error)

Each ctrl open should have potentially new data of available commands So we send callbacks to generate from the current good commandlist back in the session.go file

func (*CtrlFile) Close

func (c *CtrlFile) Close() error

func (*CtrlFile) Name

func (c *CtrlFile) Name() string

func (*CtrlFile) Read

func (c *CtrlFile) Read(b []byte) (n int, err error)

Reads return our ctrl message group

func (*CtrlFile) Seek

func (c *CtrlFile) Seek(offset int64, whence int) (int64, error)

Support seeking for potential large control writes

func (*CtrlFile) Stat

func (c *CtrlFile) Stat() (fs.FileInfo, error)

func (*CtrlFile) Stream

func (c *CtrlFile) Stream() (io.ReadCloser, error)

func (*CtrlFile) Truncate

func (c *CtrlFile) Truncate(cap int64) error

func (*CtrlFile) Write

func (c *CtrlFile) Write(p []byte) (n int, err error)

type CtrlStat

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

func (*CtrlStat) IsDir

func (s *CtrlStat) IsDir() bool

func (*CtrlStat) ModTime

func (s *CtrlStat) ModTime() time.Time

func (*CtrlStat) Mode

func (s *CtrlStat) Mode() os.FileMode

func (*CtrlStat) Name

func (s *CtrlStat) Name() string

func (*CtrlStat) Size

func (s *CtrlStat) Size() int64

func (*CtrlStat) Sys

func (s *CtrlStat) Sys() interface{}

type Files

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

func New

func New(store store.Filer) *Files

func (*Files) Cleanup

func (c *Files) Cleanup()

func (*Files) CreateBuffer

func (c *Files) CreateBuffer(name string) error

func (*Files) DeleteBuffer

func (c *Files) DeleteBuffer(name string) error

func (*Files) ErrorWriter

func (c *Files) ErrorWriter() (controller.WriteCloser, error)

func (*Files) FileWriter

func (c *Files) FileWriter(buffer, target string) (controller.WriteCloser, error)

func (*Files) HasBuffer

func (c *Files) HasBuffer(name string) bool

func (*Files) ImageWriter

func (c *Files) ImageWriter(buffer, resource string) (controller.WriteCloser, error)

func (*Files) Input

func (c *Files) Input(handler input.Handler, buffer string, payload []byte) error

func (*Files) MainWriter

func (c *Files) MainWriter(buffer string) (controller.WriteCloser, error)

func (*Files) NavWriter

func (c *Files) NavWriter(buffer string) (controller.WriteCloser, error)

func (*Files) Notification

func (c *Files) Notification(buff, from, msg string) error

func (*Files) Remove

func (c *Files) Remove(buffer, filename string) error

func (*Files) SideWriter

func (c *Files) SideWriter(buffer string) (controller.WriteCloser, error)

func (*Files) StatusWriter

func (c *Files) StatusWriter(buffer string) (controller.WriteCloser, error)

func (*Files) TitleWriter

func (c *Files) TitleWriter(buffer string) (controller.WriteCloser, error)

type InputFile

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

Callback - forward handler from listener Registration Call back in Write

func Input

func Input(buffer string, handle input.Handler) (*InputFile, error)

func (*InputFile) Close

func (i *InputFile) Close() error

func (*InputFile) Name

func (i *InputFile) Name() string

func (*InputFile) Read

func (i *InputFile) Read(b []byte) (n int, err error)

func (*InputFile) Stat

func (i *InputFile) Stat() (fs.FileInfo, error)

func (*InputFile) Truncate

func (i *InputFile) Truncate(cap int64) error

func (*InputFile) Write

func (i *InputFile) Write(p []byte) (n int, err error)

type InputStat

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

func (*InputStat) IsDir

func (s *InputStat) IsDir() bool

func (*InputStat) ModTime

func (s *InputStat) ModTime() time.Time

func (*InputStat) Mode

func (s *InputStat) Mode() os.FileMode

func (*InputStat) Name

func (s *InputStat) Name() string

func (*InputStat) Size

func (s *InputStat) Size() int64

func (*InputStat) Sys

func (s *InputStat) Sys() interface{}

type WriteCloser

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

func (WriteCloser) Close

func (w WriteCloser) Close() error

func (WriteCloser) Write

func (w WriteCloser) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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