Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Environment ¶
type Environment interface { IsTest() bool IsDev() bool IsDebugRace() bool IsDiagnostics() bool DevServerURL() string GetExecutableFolder() string }
func DetectEnvironment ¶
func DetectEnvironment() Environment
type MutexBuilder ¶
type MutexBuilder func() RWLocker
type OutputBuffer ¶
func (*OutputBuffer) Close ¶
func (b *OutputBuffer) Close() error
func (*OutputBuffer) SetPTY ¶
func (b *OutputBuffer) SetPTY(pty *os.File)
func (*OutputBuffer) UnsetPTY ¶
func (b *OutputBuffer) UnsetPTY()
type OutputBufferSeeker ¶
type OutputBufferSeeker struct {
// contains filtered or unexported fields
}
func NewOutputBufferSeeker ¶
func NewOutputBufferSeeker(buf *OutputBuffer, canResize func() bool, closer func()) *OutputBufferSeeker
func (*OutputBufferSeeker) Close ¶
func (s *OutputBufferSeeker) Close() error
func (*OutputBufferSeeker) Resize ¶
func (s *OutputBufferSeeker) Resize(size TTYSize)
type RWLocker ¶
type RWLocker interface { Lock() Unlock() RLock() RUnlock() }
func GetMutex ¶
func GetMutex(environment Environment) RWLocker
type TTY ¶
type TTY interface { io.ReadSeekCloser Resize(size TTYSize) }
type TTYOutput ¶
func NewTTYOutput ¶
func NewTTYOutput() TTYOutput
type ThreadSafeSlice ¶
func (*ThreadSafeSlice) Find ¶
func (slice *ThreadSafeSlice) Find(elem interface{}) interface{}
func (*ThreadSafeSlice) Push ¶
func (slice *ThreadSafeSlice) Push(elem interface{})
func (*ThreadSafeSlice) Remove ¶
func (slice *ThreadSafeSlice) Remove(elem interface{})
func (*ThreadSafeSlice) ToSlice ¶
func (slice *ThreadSafeSlice) ToSlice() []interface{}
Click to show internal directories.
Click to hide internal directories.