WithMasterMeta 请求时携带主机信息
(siteID string, siteURL string)
| 116 | |
| 117 | // WithMasterMeta 请求时携带主机信息 |
| 118 | func 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 |
| 127 | func WithSlaveMeta(s int) Option { |
no test coverage detected