docs(parsing): add package and symbol doc comments
Add godoc comments for all 62 exported symbols across 20 files in config/parsing/: 23 MDKey constants, 35 Parse*/List/Default* functions, 3 TLS helpers, 1 Args struct with 7 fields, and the package doc.
This commit is contained in:
@@ -14,6 +14,10 @@ import (
|
||||
resolver_plugin "github.com/go-gost/x/resolver/plugin"
|
||||
)
|
||||
|
||||
// ParseResolver converts a ResolverConfig into a resolver.Resolver. It
|
||||
// supports plugin backends (HTTP or gRPC) and inline nameserver definitions
|
||||
// with optional chain-based upstream routing, TTL, timeout, and
|
||||
// prefer/async/only settings. Returns nil with no error when cfg is nil.
|
||||
func ParseResolver(cfg *config.ResolverConfig) (resolver.Resolver, error) {
|
||||
if cfg == nil {
|
||||
return nil, nil
|
||||
|
||||
Reference in New Issue
Block a user