Documentation
¶
Index ¶
- Constants
- type Tracker
- func (s *Tracker) AddListener(c chan<- struct{})
- func (t *Tracker) ErrIndex() int
- func (t *Tracker) Get(index int) string
- func (t *Tracker) GetCustomWatcher(index int) string
- func (s *Tracker) NumListeners() int
- func (s *Tracker) RemoveListener(c chan<- struct{})
- func (t *Tracker) Reset()
- func (t *Tracker) Set(index int, msg string)
Constants ¶
View Source
const ( IndexTempl = 0 IndexGolangciLint = 1 IndexGo = 2 IndexExit = 3 IndexOffsetCustomWatcher = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
func NewTracker ¶
func (*Tracker) AddListener ¶
func (s *Tracker) AddListener(c chan<- struct{})
AddListener adds a listener channel. c will be written struct{}{} to when a state change happens.
func (*Tracker) GetCustomWatcher ¶
GetCustomWatcher gets the current error message for custom watcher at index.
func (*Tracker) NumListeners ¶ added in v0.6.0
NumListeners returns the number of currently active listeners.
func (*Tracker) RemoveListener ¶
func (s *Tracker) RemoveListener(c chan<- struct{})
RemoveListener removes a listener channel.
Click to show internal directories.
Click to hide internal directories.