mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-01 07:50:26 +02:00
config: use config.Config instead of config.Options everywhere
This commit is contained in:
parent
5f51510e91
commit
1b80e8a6c2
40 changed files with 484 additions and 412 deletions
|
@ -31,6 +31,16 @@ type Config struct {
|
|||
MetricsScrapeEndpoints []MetricsScrapeEndpoint
|
||||
}
|
||||
|
||||
// New creates a new Config.
|
||||
func New(options *Options) *Config {
|
||||
if options == nil {
|
||||
options = NewDefaultOptions()
|
||||
}
|
||||
return &Config{
|
||||
Options: options,
|
||||
}
|
||||
}
|
||||
|
||||
// Clone creates a clone of the config.
|
||||
func (cfg *Config) Clone() *Config {
|
||||
newOptions := new(Options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue