MCPcopy
hub / github.com/micro/go-micro / WithAddress

Function WithAddress

client/options.go:309–313  ·  view source on GitHub ↗

WithAddress sets the remote addresses to use rather than using service discovery.

(a ...string)

Source from the content-addressed store, hash-verified

307
308// WithAddress sets the remote addresses to use rather than using service discovery.
309func WithAddress(a ...string) CallOption {
310 return func(o *CallOptions) {
311 o.Address = a
312 }
313}
314
315func WithSelectOption(so ...selector.SelectOption) CallOption {
316 return func(o *CallOptions) {

Callers 4

mainFunction · 0.92
TestCallAddressFunction · 0.70
TestCallRetryFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestCallAddressFunction · 0.56
TestCallRetryFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…