Documentation ¶
Index ¶
- Constants
- func Close(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func CloseWithCloser(cl io.Closer, c *rt.GoCont) (rt.Cont, *rt.Error)
- func CloserArg(c *rt.GoCont, n int) (io.Closer, *rt.Error)
- func Flush(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func FlushWithFlusher(w Flusher, c *rt.GoCont) (rt.Cont, *rt.Error)
- func GetTimeout(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func GetTimeoutWithGetTimeouter(s GetTimeouter, c *rt.GoCont) (rt.Cont, *rt.Error)
- func IsClosed(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func Lines(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func LinesWithReader(r io.Reader, c *rt.GoCont, closeAtEOF bool) (rt.Cont, *rt.Error)
- func PushingError(c *rt.GoCont, err error) (rt.Cont, *rt.Error)
- func PushingNextResult(c *rt.GoCont, v rt.Value, err error) (rt.Cont, *rt.Error)
- func Read(t *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func ReadAll(r io.Reader, t *rt.Thread) (string, error)
- func ReadCloserArg(c *rt.GoCont, n int) (io.ReadCloser, *rt.Error)
- func ReadWithReader(r io.Reader, t *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func ReadWriteCloserArg(c *rt.GoCont, n int) (io.ReadWriteCloser, *rt.Error)
- func ReadWriterArg(c *rt.GoCont, n int) (io.ReadWriter, *rt.Error)
- func ReaderArg(c *rt.GoCont, n int) (io.Reader, *rt.Error)
- func Seek(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func SeekerArg(c *rt.GoCont, n int) (io.Seeker, *rt.Error)
- func SetTimeout(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func SetTimeoutWithSetTimeouter(s SetTimeouter, c *rt.GoCont) (rt.Cont, *rt.Error)
- func StringerArg(c *rt.GoCont, n int) (fmt.Stringer, *rt.Error)
- func SyncWithSyncer(w Syncer, c *rt.GoCont) (rt.Cont, *rt.Error)
- func ToString(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func ValueToCloser(v rt.Value) (io.Closer, bool)
- func ValueToReadCloser(v rt.Value) (io.ReadCloser, bool)
- func ValueToReadWriteCloser(v rt.Value) (io.ReadWriteCloser, bool)
- func ValueToReadWriter(v rt.Value) (io.ReadWriter, bool)
- func ValueToReader(v rt.Value) (io.Reader, bool)
- func ValueToSeeker(v rt.Value) (io.Seeker, bool)
- func ValueToStringer(v rt.Value) (fmt.Stringer, bool)
- func ValueToWriteCloser(v rt.Value) (io.WriteCloser, bool)
- func ValueToWriter(v rt.Value) (io.Writer, bool)
- func Write(_ *rt.Thread, c *rt.GoCont) (rt.Cont, *rt.Error)
- func WriteCloserArg(c *rt.GoCont, n int) (io.WriteCloser, *rt.Error)
- func WriteValues(w io.Writer, vals []rt.Value) error
- func WriteWithWriter(v rt.Value, c *rt.GoCont) (rt.Cont, *rt.Error)
- func WriterArg(c *rt.GoCont, n int) (io.Writer, *rt.Error)
- type Flusher
- type GetTimeouter
- type IsCloseder
- type SetTimeouter
- type Syncer
Constants ¶
const NilTimeout = time.Duration(-1)
NilTimeout is the nil-valued timeout.
Variables ¶
This section is empty.
Functions ¶
func CloseWithCloser ¶
CloseWithCloser TODO
func Flush ¶
Flush TODO
Note that Flush will fallback to calling the Sync method if the argument does not support Flusher but does support Syncer.
func FlushWithFlusher ¶
FlushWithFlusher TODO
func GetTimeout ¶
GetTimeout returns the current I/O timeout, in seconds. A nil timeout value allows operations to block indefinitely. Args: gettimeouter
func GetTimeoutWithGetTimeouter ¶
GetTimeoutWithGetTimeouter returns the current I/O timeout, in seconds. A nil timeout value allows operations to block indefinitely. Args:
func LinesWithReader ¶
LinesWithReader TODO
func PushingError ¶
PushingError TODO
func PushingNextResult ¶
PushingNextResult TODO
func ReadAll ¶
ReadAll reads from r until an error, EOF, or the interrupt channel on t fires, and returns the data it read. A successful call returns err == nil, not err == EOF. Because ReadAll is defined to read from src until EOF, it does not treat an EOF from Read as an error to be reported.
func ReadCloserArg ¶
ReadCloserArg turns a continuation argument into an io.ReadCloser.
func ReadWithReader ¶
ReadWithReader TODO
func ReadWriteCloserArg ¶
ReadWriteCloserArg turns a continuation argument into an io.ReadWriteCloser.
func ReadWriterArg ¶
ReadWriterArg turns a continuation argument into an io.ReadWriter.
func SetTimeout ¶
SetTimeout sets the timeout, defining a limit on the amount of time the I/O methods can block. When a timeout is set and the specified amount of time has elapsed, the affected methods give up and fail with an error message. The amount of time to wait is specified as the value parameter, in seconds.
The nil timeout value allows operations to block indefinitely. Negative timeout values have the same effect. Args: settimeouter [value]
func SetTimeoutWithSetTimeouter ¶
SetTimeoutWithSetTimeouter sets the timeout, defining a limit on the amount of time the I/O methods can block. When a timeout is set and the specified amount of time has elapsed, the affected methods give up and fail with an error message. The amount of time to wait is specified as the value parameter, in seconds.
The nil timeout value allows operations to block indefinitely. Negative timeout values have the same effect. Args: [value]
func StringerArg ¶
StringerArg turns a continuation argument into a fmt.Stringer.
func SyncWithSyncer ¶
SyncWithSyncer TODO
func ValueToCloser ¶
ValueToCloser turns a Lua value to an io.Closer, if possible.
func ValueToReadCloser ¶
func ValueToReadCloser(v rt.Value) (io.ReadCloser, bool)
ValueToReadCloser turns a Lua value to an io.ReadCloser, if possible.
func ValueToReadWriteCloser ¶
func ValueToReadWriteCloser(v rt.Value) (io.ReadWriteCloser, bool)
ValueToReadWriteCloser turns a Lua value to an io.ReadWriteCloser, if possible.
func ValueToReadWriter ¶
func ValueToReadWriter(v rt.Value) (io.ReadWriter, bool)
ValueToReadWriter turns a Lua value to an io.ReadWriter, if possible.
func ValueToReader ¶
ValueToReader turns a Lua value to an io.Reader, if possible.
func ValueToSeeker ¶
ValueToSeeker turns a Lua value to an io.Seeker, if possible.
func ValueToStringer ¶
ValueToStringer turns a Lua value to a fmt.Stringer, if possible.
func ValueToWriteCloser ¶
func ValueToWriteCloser(v rt.Value) (io.WriteCloser, bool)
ValueToWriteCloser turns a Lua value to an io.WriteCloser, if possible.
func ValueToWriter ¶
ValueToWriter turns a Lua value to an io.Writer, if possible.
func WriteCloserArg ¶
WriteCloserArg turns a continuation argument into an io.WriteCloser.
func WriteValues ¶
WriteValues writes the given values to w.
func WriteWithWriter ¶
WriteWithWriter TODO
Types ¶
type Flusher ¶
type Flusher interface {
Flush() error
}
Flusher is the interface satisfied by the Flush method.
func FlusherArg ¶
FlusherArg turns a continuation argument into a Flusher.
type GetTimeouter ¶
GetTimeouter is the interface satisfied by the GetTimeout method.
func GetTimeouterArg ¶
GetTimeouterArg turns a continuation argument into a GetTimeouter.
func ValueToGetTimeouter ¶
func ValueToGetTimeouter(v rt.Value) (GetTimeouter, bool)
ValueToGetTimeouter turns a Lua value to a GetTimeouter, if possible.
type IsCloseder ¶
type IsCloseder interface {
IsClosed() bool
}
IsCloseder is the interface satisfied by the IsClosed method.
func IsClosederArg ¶
IsClosederArg turns a continuation argument into an IsCloseder.
func ValueToIsCloseder ¶
func ValueToIsCloseder(v rt.Value) (IsCloseder, bool)
ValueToIsCloseder turns a Lua value to an IsCloseder, if possible.
type SetTimeouter ¶
SetTimeouter is the interface satisfied by the SetTimeout method.
func SetTimeouterArg ¶
SetTimeouterArg turns a continuation argument into a SetTimeouter.
func ValueToSetTimeouter ¶
func ValueToSetTimeouter(v rt.Value) (SetTimeouter, bool)
ValueToSetTimeouter turns a Lua value to a SetTimeouter, if possible.