Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Counter = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "tikti_migration_0007_records_total", Help: "Number of user records processed by migration 0007.", }, []string{"result"}, )
Counter records the number of user records processed during migration 0007.
Functions ¶
func Down ¶
Down removes the authSource and externalSubject fields from all user records, restoring them to their pre-migration state. This is the manual rollback procedure and is never executed automatically.
func Run ¶
func Run(ctx context.Context, rdb redis.Cmdable, m *prometheus.CounterVec) error
Run iterates all user records in the users_v2 hash with HSCAN COUNT 500, sets authSource=password and externalSubject="" on records where those fields are absent, and emits Prometheus counters per 1000 records.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.