Documentation ¶
Index ¶
- Constants
- Variables
- type Handler
- func (s *Handler) Add(delta int)
- func (s *Handler) AddFor(level uint8, delta int)
- func (s *Handler) AddRequest(delta int)
- func (s *Handler) Channel() <-chan struct{}
- func (s *Handler) Done()
- func (s *Handler) DoneFor(level uint8)
- func (s *Handler) DoneRequest()
- func (s *Handler) PreStop(level uint8, f stopFunc)
- func (s *Handler) SafeStop(timeout time.Duration, exitFunc func(int))
- func (s *Handler) Wait()
- func (s *Handler) WaitFor(level uint8)
- func (s *Handler) WaitRequest()
Constants ¶
Variables ¶
View Source
var ( ErrorNoInit = errors.New("stopChan is not init") ErrorLevelOutOfBounds = errors.New("level out of bounds") )
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v1.2.0
type Handler struct {
// contains filtered or unexported fields
}
func SetupSignalHandler ¶
func SignalHandler ¶
func SignalHandler() (stopCh *Handler)
func (*Handler) AddRequest ¶ added in v1.2.0
func (*Handler) DoneRequest ¶ added in v1.2.0
func (s *Handler) DoneRequest()
func (*Handler) WaitRequest ¶ added in v1.2.0
func (s *Handler) WaitRequest()
Click to show internal directories.
Click to hide internal directories.