Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CutoverChecker ¶
type CutoverChecker struct {
// contains filtered or unexported fields
}
CutoverChecker checks whether the D14N migration cutover time has passed. It is used by MLS and Identity services to disable publishing after cutover.
func NewCutoverChecker ¶
func NewCutoverChecker(cutoverNs uint64) *CutoverChecker
NewCutoverChecker creates a new CutoverChecker with the given cutover timestamp.
func (*CutoverChecker) CutoverNs ¶
func (c *CutoverChecker) CutoverNs() uint64
CutoverNs returns the configured cutover timestamp in nanoseconds.
func (*CutoverChecker) IsMigrationComplete ¶
func (c *CutoverChecker) IsMigrationComplete() bool
IsMigrationComplete returns true if the cutover time has passed. Returns false if the checker is nil or cutoverNs is 0.
Click to show internal directories.
Click to hide internal directories.