github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/istructsmem/internal/singletons/interface.go (about) 1 /* 2 * Copyright (c) 2021-present Sigma-Soft, Ltd. 3 * @author: Nikolay Nikitin 4 */ 5 6 package singletons 7 8 import ( 9 "github.com/voedger/voedger/pkg/appdef" 10 "github.com/voedger/voedger/pkg/istructs" 11 ) 12 13 // Singletons IDs system view. 14 // 15 // Use ID() to obtain singleton ID by its QName. 16 // Use Prepare() to load Singletons from storage. 17 type Singletons struct { 18 qNames map[appdef.QName]istructs.RecordID 19 ids map[istructs.RecordID]appdef.QName 20 lastID istructs.RecordID 21 changes uint 22 }