Documentation
¶
Index ¶
Constants ¶
View Source
const ( ROLL_DAY = iota ROLL_HOUR )
View Source
const UpgradeKey = "upgrade_category"
Variables ¶
This section is empty.
Functions ¶
func ReleaseRollHook ¶
func ReleaseRollHook(rh *RollHook)
Types ¶
type RollHook ¶
type RollHook struct {
// contains filtered or unexported fields
}
func (*RollHook) SetRollType ¶
type SourceHook ¶
type SourceHook struct {
// contains filtered or unexported fields
}
func NewSourceHook ¶
func NewSourceHook(level logrus.Level) *SourceHook
func (*SourceHook) Levels ¶
func (sh *SourceHook) Levels() []logrus.Level
type UpgradeHook ¶
type UpgradeHook struct {
// contains filtered or unexported fields
}
func NewUpgradeHook ¶
func NewUpgradeHook(threshold int64, interval time.Duration) *UpgradeHook
func (*UpgradeHook) Close ¶
func (h *UpgradeHook) Close()
In general, it's not required to close the UpgradeHook.
func (*UpgradeHook) Levels ¶
func (*UpgradeHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.