Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConsoleStdout = NewConsoleWriter(os.Stdout) ConsoleStderr = NewConsoleWriter(os.Stderr) )
View Source
var ErrClosed = errors.New("closed")
View Source
var ErrDrained = errors.New("drained")
Functions ¶
This section is empty.
Types ¶
type CancellableCtx ¶
type CancellableCtx struct {
// contains filtered or unexported fields
}
func (*CancellableCtx) Cancel ¶
func (a *CancellableCtx) Cancel()
func (*CancellableCtx) CancelAndNew ¶
func (a *CancellableCtx) CancelAndNew(ctx context.Context) context.Context
func (*CancellableCtx) Done ¶
func (a *CancellableCtx) Done()
type ConsoleWriter ¶
func NewConsoleWriter ¶
func NewConsoleWriter(w *os.File) *ConsoleWriter
func (*ConsoleWriter) Close ¶
func (c *ConsoleWriter) Close() error
func (*ConsoleWriter) Connect ¶
func (c *ConsoleWriter) Connect()
func (*ConsoleWriter) Disconnect ¶
func (c *ConsoleWriter) Disconnect()
func (*ConsoleWriter) Drain ¶
func (c *ConsoleWriter) Drain()
Click to show internal directories.
Click to hide internal directories.