Documentation ¶
Index ¶
- func SetLogger(l *slogger.Logger) *slogger.Logger
- type Sentry
- func (s *Sentry) Activate()
- func (s *Sentry) Checkin(format string, args ...interface{})
- func (s *Sentry) Counter() int64
- func (s *Sentry) Deactivate()
- func (s *Sentry) Identifier() string
- func (s *Sentry) Notes() string
- func (s *Sentry) SetTTL(duration time.Duration) *Sentry
- func (s *Sentry) Update(format string, args ...interface{})
- type SentryTeam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sentry ¶
type Sentry struct { Name string LastCheck time.Time Deadline time.Time TripwireFunc func(*Sentry) // contains filtered or unexported fields }
func (*Sentry) Deactivate ¶
func (s *Sentry) Deactivate()
func (*Sentry) Identifier ¶
type SentryTeam ¶
type SentryTeam struct { Name string Sentries map[string]*Sentry DefaultTtl time.Duration CheckInterval time.Duration Active bool TripwireFunc func(*Sentry) // contains filtered or unexported fields }
func NewSentryTeam ¶
func NewSentryTeam() *SentryTeam
func (*SentryTeam) ActiveStatus ¶
func (st *SentryTeam) ActiveStatus()
func (*SentryTeam) CheckEnsure ¶
func (st *SentryTeam) CheckEnsure(name string, format string, opt ...interface{}) *Sentry
func (*SentryTeam) Ensure ¶
func (st *SentryTeam) Ensure(name string) *Sentry
func (*SentryTeam) Identifier ¶
func (st *SentryTeam) Identifier() string
func (*SentryTeam) NewSentry ¶
func (st *SentryTeam) NewSentry(Name string, opts ...interface{}) *Sentry
Click to show internal directories.
Click to hide internal directories.