github.com/yandex/pandora@v0.5.32/components/providers/base/provider.go (about) 1 package base 2 3 import ( 4 "sync/atomic" 5 6 "github.com/spf13/afero" 7 "github.com/yandex/pandora/core" 8 ) 9 10 type ProviderBase struct { 11 Deps core.ProviderDeps 12 FS afero.Fs 13 idCounter atomic.Uint64 14 } 15 16 func (p *ProviderBase) NextID() uint64 { 17 return p.idCounter.Add(1) 18 }