Documentation
¶
Index ¶
- type Message
- type WaitLiveMsg
- func (w *WaitLiveMsg) AddMessage(msg *Message)
- func (w *WaitLiveMsg) Duration() time.Duration
- func (w *WaitLiveMsg) GetMessages() []*Message
- func (w *WaitLiveMsg) RemoveMessage(msg *Message)
- func (w *WaitLiveMsg) ResetDuration()
- func (w *WaitLiveMsg) ResetMessages()
- func (w *WaitLiveMsg) SetMessage(msg *Message)
- func (w *WaitLiveMsg) SetMessages(msgs []*Message)
- func (w *WaitLiveMsg) SetStream(ws *uilive.Writer)
- func (w *WaitLiveMsg) Stop()
- func (w *WaitLiveMsg) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message to print
func EmptyLine ¶
func EmptyLine() *Message
EmptyLine creates a Message with an empty line it has the side-effect of using no symbols as prefixes
func NewMessage ¶
NewMessage creates a Message with a given text
type WaitLiveMsg ¶
type WaitLiveMsg struct {
// contains filtered or unexported fields
}
WaitLiveMsg is used for "waiting" live message
func (*WaitLiveMsg) AddMessage ¶
func (w *WaitLiveMsg) AddMessage(msg *Message)
AddMessage to display
func (*WaitLiveMsg) GetMessages ¶ added in v1.2.4
func (w *WaitLiveMsg) GetMessages() []*Message
GetMessages displayed
func (*WaitLiveMsg) RemoveMessage ¶
func (w *WaitLiveMsg) RemoveMessage(msg *Message)
RemoveMessage from the messages slice
func (*WaitLiveMsg) ResetDuration ¶
func (w *WaitLiveMsg) ResetDuration()
ResetDuration to restart counter
func (*WaitLiveMsg) SetMessage ¶
func (w *WaitLiveMsg) SetMessage(msg *Message)
SetMessage to display
func (*WaitLiveMsg) SetMessages ¶
func (w *WaitLiveMsg) SetMessages(msgs []*Message)
SetMessages to display
func (*WaitLiveMsg) SetStream ¶
func (w *WaitLiveMsg) SetStream(ws *uilive.Writer)
SetStream to output to
Click to show internal directories.
Click to hide internal directories.