ServiceNamespace => ServicePrefix in api server
This commit is contained in:
parent
316424f0f7
commit
9e116731b1
@ -10,15 +10,15 @@ import (
|
|||||||
type Option func(o *Options)
|
type Option func(o *Options)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
EnableACME bool
|
EnableACME bool
|
||||||
EnableCORS bool
|
EnableCORS bool
|
||||||
ACMEProvider acme.Provider
|
ACMEProvider acme.Provider
|
||||||
EnableTLS bool
|
EnableTLS bool
|
||||||
ACMEHosts []string
|
ACMEHosts []string
|
||||||
TLSConfig *tls.Config
|
TLSConfig *tls.Config
|
||||||
Resolver resolver.Resolver
|
Resolver resolver.Resolver
|
||||||
Namespace string
|
Namespace string
|
||||||
ServiceNamespace string
|
ServicePrefix string
|
||||||
}
|
}
|
||||||
|
|
||||||
func EnableCORS(b bool) Option {
|
func EnableCORS(b bool) Option {
|
||||||
@ -57,9 +57,9 @@ func TLSConfig(t *tls.Config) Option {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ServiceNamespace(n string) Option {
|
func ServicePrefix(n string) Option {
|
||||||
return func(o *Options) {
|
return func(o *Options) {
|
||||||
o.ServiceNamespace = n
|
o.ServicePrefix = n
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user