MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / WithMasterMeta

Function WithMasterMeta

pkg/request/options.go:118–124  ·  view source on GitHub ↗

WithMasterMeta 请求时携带主机信息

(siteID string, siteURL string)

Source from the content-addressed store, hash-verified

116
117// WithMasterMeta 请求时携带主机信息
118func WithMasterMeta(siteID string, siteURL string) Option {
119 return optionFunc(func(o *options) {
120 o.masterMeta = true
121 o.siteID = siteID
122 o.siteURL = siteURL
123 })
124}
125
126// WithSlaveMeta set slave node ID in master's request header
127func WithSlaveMeta(s int) Option {

Callers 4

TestMethod · 0.92
TestMethod · 0.92
NewClientFunction · 0.92
newSlaveNodeFunction · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected