MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithClient

Function WithClient

pkg/version/remote.go:136–140  ·  view source on GitHub ↗

WithClient configures a custom HTTP client.

(client *http.Client)

Source from the content-addressed store, hash-verified

134
135// WithClient configures a custom HTTP client.
136func WithClient(client *http.Client) CheckOption {
137 return checkOptionFunc(func(o *checkOptions) {
138 o.client = client
139 })
140}
141
142// WithURLs configures custom URLs for source and documentation.
143func WithURLs(sourceURL, docsURL string) CheckOption {

Callers 1

versionCheckTaskFunction · 0.92

Calls 1

checkOptionFuncFuncType · 0.85

Tested by

no test coverage detected