MCPcopy
hub / github.com/perkeep/perkeep / OptionServer

Function OptionServer

pkg/client/client.go:324–326  ·  view source on GitHub ↗

OptionServer returns a Client constructor option that forces use of the provided server. The provided server is either "host:port" (assumed http, not https) or a URL prefix, with or without a path, or a server alias from the client configuration file. A server alias should not be confused with a ho

(server string)

Source from the content-addressed store, hash-verified

322// client configuration file. A server alias should not be confused
323// with a hostname, therefore it cannot contain any colon or period.
324func OptionServer(server string) ClientOption {
325 return optionServer(server)
326}
327
328type optionServer string
329

Callers 12

setupClientFunction · 0.92
newFromConfigFunction · 0.92
TestUploadFileFunction · 0.92
ClientFunction · 0.92
makeThingsMethod · 0.92
newClientFunction · 0.92
storageFromParamMethod · 0.92
syncAllMethod · 0.92
newClientFunction · 0.92
NewPathClientMethod · 0.85
NewFromShareRootFunction · 0.85

Calls 1

optionServerTypeAlias · 0.85

Tested by 1

TestUploadFileFunction · 0.74