mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
wait for initial sync to complete before starting control plane (#1636)
This commit is contained in:
parent
e5d55f300e
commit
3f7777f7e0
4 changed files with 49 additions and 6 deletions
|
@ -420,6 +420,11 @@ func (dbd DataBrokerData) Clear(typeURL string) {
|
|||
delete(dbd, typeURL)
|
||||
}
|
||||
|
||||
// Count returns the number of entries for the given type URL.
|
||||
func (dbd DataBrokerData) Count(typeURL string) int {
|
||||
return len(dbd[typeURL])
|
||||
}
|
||||
|
||||
// Get gets a record from the DataBrokerData.
|
||||
func (dbd DataBrokerData) Get(typeURL, id string) interface{} {
|
||||
m, ok := dbd[typeURL]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue