MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / TLSRemoteAPIConfig

Struct TLSRemoteAPIConfig

pkg/httpsrv/tls_remote_api.go:62–72  ·  view source on GitHub ↗

TLSRemoteAPIConfig implements certificate retrieval from other service API

Source from the content-addressed store, hash-verified

60
61// TLSRemoteAPIConfig implements certificate retrieval from other service API
62type TLSRemoteAPIConfig struct {
63 url string // Certificate PEM download URL
64 headers map[string]string // Optional: request headers
65 timeout time.Duration // Optional: HTTP timeout
66 cacheDir string // Cache directory
67
68 certFile string // Cached certificate file path
69 keyFile string // Cached private key file path
70
71 httpClient *http.Client // Internal HTTP client
72}
73
74func NewTLSRemoteAPIConfig(url string, opts ...TLSRemoteAPIOption) *TLSRemoteAPIConfig {
75 o := defaultTLSRemoteAPIOptions()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected