Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomPin ¶
func GenerateRandomPin() string
func GetRandomName ¶
GetRandomName returns mnemonicoded random name
func SelfCheck ¶
func SelfCheck(limits SelfCheckLimit, log logger.AppLogger, unhealhtyStreak int)
SelfCheck will watch the applications metrics, and crash it if it is considered to be unhealthy. This is only for use outside of kubernetes/docker
func SortedMapKeys ¶
Types ¶
type Batcher ¶
type Batcher struct { Watcher *fsnotify.Watcher Events chan []fsnotify.Event // Events are returned on this channel // contains filtered or unexported fields }
Batcher batches file watch events in a given interval.
func NewDirWatcher ¶
Watches a directory recursively Caller must call .Close
type SelfCheckLimit ¶
Click to show internal directories.
Click to hide internal directories.