mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
added go routine to cleaup expired access requests
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/michaelquigley/cf"
|
||||
"github.com/openziti-test-kitchen/zrok/controller/store"
|
||||
"github.com/pkg/errors"
|
||||
@ -18,6 +20,7 @@ type Config struct {
|
||||
Ziti *ZitiConfig
|
||||
Metrics *MetricsConfig
|
||||
Influx *InfluxConfig
|
||||
Maintenance *MaintenanceConfig
|
||||
}
|
||||
|
||||
type AdminConfig struct {
|
||||
@ -58,6 +61,15 @@ type InfluxConfig struct {
|
||||
Token string `cf:"+secret"`
|
||||
}
|
||||
|
||||
type MaintenanceConfig struct {
|
||||
Registration *RegistrationMaintenanceConfig
|
||||
}
|
||||
|
||||
type RegistrationMaintenanceConfig struct {
|
||||
ExpirationTimeout time.Duration
|
||||
CheckFrequency time.Duration
|
||||
}
|
||||
|
||||
func LoadConfig(path string) (*Config, error) {
|
||||
cfg := &Config{
|
||||
Metrics: &MetricsConfig{ServiceName: "metrics"},
|
||||
|
Reference in New Issue
Block a user