mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +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,
|
||
|
}
|
||
|
}
|