files

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 12 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) 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() any

type FeedFile added in v0.2.3

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

func Feed added in v0.2.3

func Feed(feed store.File, act func(string), buffer string, err error) (*FeedFile, error)

func (*FeedFile) Close added in v0.2.3

func (f *FeedFile) Close() error

func (*FeedFile) Name added in v0.2.3

func (f *FeedFile) Name() string

func (*FeedFile) Read added in v0.2.3

func (f *FeedFile) Read(b []byte) (n int, err error)

Attempt to do the right thing here with the reads

func (*FeedFile) Seek added in v0.2.3

func (f *FeedFile) Seek(offset int64, whence int) (int64, error)

func (*FeedFile) Stat added in v0.2.3

func (f *FeedFile) Stat() (fs.FileInfo, error)

func (*FeedFile) Truncate added in v0.2.3

func (f *FeedFile) Truncate(cap int64) error

func (*FeedFile) Write added in v0.2.3

func (f *FeedFile) Write(p []byte) (n int, err error)

type Files

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

func New

func New(store store.Filer, debug bool) *Files

func (*Files) Activity added in v0.3.0

func (c *Files) Activity(buffer string)

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) FeedWriter added in v0.2.3

func (c *Files) FeedWriter(buffer 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) 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 callback.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) Seek added in v0.2.3

func (i *InputFile) Seek(offset int64, whence int) (int64, error)

Support seeking for potential large control writes

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() any

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