mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-26 07:39:10 +00:00
24 lines
339 B
Go
24 lines
339 B
Go
|
|
package gomap
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/zitadel/zitadel/internal/cache"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Config struct {
|
||
|
|
Enabled bool
|
||
|
|
AutoPrune cache.AutoPruneConfig
|
||
|
|
}
|
||
|
|
|
||
|
|
type Connector struct {
|
||
|
|
Config cache.AutoPruneConfig
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewConnector(config Config) *Connector {
|
||
|
|
if !config.Enabled {
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
return &Connector{
|
||
|
|
Config: config.AutoPrune,
|
||
|
|
}
|
||
|
|
}
|