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

Function WithURLs

pkg/version/remote.go:143–147  ·  view source on GitHub ↗

WithURLs configures custom URLs for source and documentation.

(sourceURL, docsURL string)

Source from the content-addressed store, hash-verified

141
142// WithURLs configures custom URLs for source and documentation.
143func WithURLs(sourceURL, docsURL string) CheckOption {
144 return checkOptionFunc(func(o *checkOptions) {
145 o.sourceURL, o.docsURL = sourceURL, docsURL
146 })
147}
148
149// WithReference configures a custom reference version.
150func WithReference(current semver.Version) CheckOption {

Callers 1

TestCheckUpdateFunction · 0.92

Calls 1

checkOptionFuncFuncType · 0.85

Tested by 1

TestCheckUpdateFunction · 0.74