Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Thread ¶
type Thread struct {
// contains filtered or unexported fields
}
Thread provides a background, periodic thread, which invokes the given function every supplied interval.
Sample usage:
monitorFunc := func() { //do monitoring logic } monitor := thread.New(log, "Health Monitor", time.Minute*2, monitorFunc) monitor.Start() defer monitor.Stop() ....
func (*Thread) LastRunStartedAt ¶
Click to show internal directories.
Click to hide internal directories.