migration

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 1 Imported by: 0

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.

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL