github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/sys/uniques/provide.go (about) 1 /* 2 * Copyright (c) 2020-present unTill Pro, Ltd. 3 */ 4 5 package uniques 6 7 import ( 8 "github.com/voedger/voedger/pkg/istructs" 9 "github.com/voedger/voedger/pkg/istructsmem" 10 ) 11 12 func Provide(cfg *istructsmem.AppConfigType) { 13 cfg.AddSyncProjectors(istructs.Projector{ 14 Name: qNameApplyUniques, 15 Func: provideApplyUniques(cfg.AppDef), 16 }) 17 cfg.AddEventValidators(eventUniqueValidator) 18 }