package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Dec 3, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
breaker
TODO
Copyright (c) 2022 Archivage Numérique
Documentation
¶
type Config struct {
Name string `dm:"name"`
CloseToOpen uint `dm:"close_to_open"`
HalfOpenToClose uint `dm:"half_open_to_close"`
OpenToHalfOpen time.Duration `dm:"open_to_half_open"`
OnStateChangeFunc OnStateChangeFunc
}
type OnStateChangeFunc func(name string, to, from State)
const (
StateClosed State = "closed"
StateHalfOpen State = "half_open"
StateOpen State = "open"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.