Documentation ¶
Index ¶
- Variables
- func Add(f Filer)
- func Del(f Filer)
- func Update(f Filer)
- func Wait(once bool)
- type AvailableReader
- type File
- type FileBuf
- func (s *FileBuf) Close() (err error)
- func (s *FileBuf) ErrorReady() (err error)
- func (s *FileBuf) Read(advance int) []byte
- func (s *FileBuf) ReadReady() (err error)
- func (f *FileBuf) String() string
- func (s *FileBuf) TxBuf() elib.ByteVec
- func (s *FileBuf) TxLen() int
- func (s *FileBuf) Write(p []byte) (n int, err error)
- func (s *FileBuf) WriteAvailable() bool
- func (s *FileBuf) WriteReady() (err error)
- type FileReadWriteCloser
- type Filer
- type Mux
- func (m *Mux) Add(f Filer)
- func (m *Mux) Del(f Filer)
- func (p *Mux) Elts() uint
- func (m *Mux) EventPoll()
- func (p *Mux) Foreach(f func(x Filer))
- func (p *Mux) ForeachIndex(f func(i uint))
- func (p *Mux) GetIndex() (i uint)
- func (p *Mux) IsFree(i uint) (v bool)
- func (p *Mux) Len() uint
- func (p *Mux) PutIndex(i uint) (ok bool)
- func (p *Mux) Reset()
- func (p *Mux) Resize(n uint)
- func (m *Mux) Update(f Filer)
- func (p *Mux) Validate(i uint)
- func (m *Mux) Wait(once bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &Mux{}
Functions ¶
Types ¶
type AvailableReader ¶
type AvailableReader interface { // Read from is file is currently allowed. ReadAvailable() bool }
type File ¶
type File struct { Fd int // contains filtered or unexported fields }
func (*File) SetReadOnly ¶
func (f *File) SetReadOnly()
func (*File) SetWriteOnly ¶
func (f *File) SetWriteOnly()
type FileBuf ¶
type FileBuf struct { File // contains filtered or unexported fields }
func NewFileBuf ¶
func (*FileBuf) ErrorReady ¶
func (*FileBuf) WriteAvailable ¶
func (*FileBuf) WriteReady ¶
type FileReadWriteCloser ¶
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
func (*Mux) Add ¶
Add adds a file to the file poller, certainly for read and possibly for write depending on f.WriteReady()
func (*Mux) ForeachIndex ¶
func (p *Mux) ForeachIndex(f func(i uint))
Click to show internal directories.
Click to hide internal directories.