Documentation
¶
Index ¶
- func ApplyGRPCSettings(opts *grpcx.Options, settings map[string]string, resolver *vars.Resolver) error
- func ApplyHTTPSettings(opts *httpx.Options, settings map[string]string, resolver *vars.Resolver) error
- func FromValues(values map[string]string) map[string]string
- func IsHTTPKey(key string) bool
- func Merge(scopes ...map[string]string) map[string]string
- func Patch(base map[string]string, patch map[string]*string) map[string]string
- type Applier
- type ApplyFunc
- type Handler
- type Matcher
- type ResolverProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGRPCSettings ¶
func ApplyHTTPSettings ¶
func Merge ¶
Merge folds scopes together in precedence order and returns canonical keys, so later scopes override earlier ones regardless of how each one wrote the key. A key also replaces the other names of its option from earlier scopes, so two names of one option are left only when one scope wrote both, which ApplyAll rejects. Keys are visited in sorted order to keep two forms of the same key in one scope from resolving differently between runs.
Types ¶
type Applier ¶
type Applier struct {
// contains filtered or unexported fields
}