Documentation
¶
Index ¶
- func AssertTruef(b bool, format string, args ...interface{})
- func Logger() *logger.Logger
- type RoutineSupervisor
- func (rs *RoutineSupervisor) Done()
- func (rs *RoutineSupervisor) HasBeenClosed() <-chan struct{}
- func (rs *RoutineSupervisor) SetReady()
- func (rs *RoutineSupervisor) SignalClose()
- func (rs *RoutineSupervisor) SignalCloseAndWait()
- func (rs *RoutineSupervisor) WaitClose()
- func (rs *RoutineSupervisor) WaitReady()
- type Supervisor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertTruef ¶
AssertTruef is AssertTrue with extra info.
Types ¶
type RoutineSupervisor ¶
type RoutineSupervisor struct {
Name string
// contains filtered or unexported fields
}
func (*RoutineSupervisor) Done ¶
func (rs *RoutineSupervisor) Done()
func (*RoutineSupervisor) HasBeenClosed ¶
func (rs *RoutineSupervisor) HasBeenClosed() <-chan struct{}
func (*RoutineSupervisor) SetReady ¶
func (rs *RoutineSupervisor) SetReady()
func (*RoutineSupervisor) SignalClose ¶
func (rs *RoutineSupervisor) SignalClose()
func (*RoutineSupervisor) SignalCloseAndWait ¶
func (rs *RoutineSupervisor) SignalCloseAndWait()
func (*RoutineSupervisor) WaitClose ¶
func (rs *RoutineSupervisor) WaitClose()
func (*RoutineSupervisor) WaitReady ¶
func (rs *RoutineSupervisor) WaitReady()
type Supervisor ¶
type Supervisor struct {
sync.RWMutex
Routines map[string]*RoutineSupervisor
Ready bool
}
func NewSupervisor ¶
func NewSupervisor() *Supervisor
func (*Supervisor) Get ¶
func (s *Supervisor) Get(name string) *RoutineSupervisor
func (*Supervisor) Register ¶
func (s *Supervisor) Register(name string) *RoutineSupervisor
func (*Supervisor) SetAllReady ¶
func (s *Supervisor) SetAllReady()
func (*Supervisor) SignalAllClose ¶
func (s *Supervisor) SignalAllClose()
func (*Supervisor) WaitAllClose ¶
func (s *Supervisor) WaitAllClose()
func (*Supervisor) WaitAllReady ¶
func (s *Supervisor) WaitAllReady()
Click to show internal directories.
Click to hide internal directories.