(ctx context.Context, endpoint string)
| 21 | } |
| 22 | |
| 23 | func WithEndpoint(ctx context.Context, endpoint string) context.Context { |
| 24 | if ctx == nil { |
| 25 | ctx = context.Background() |
| 26 | } |
| 27 | return context.WithValue(ctx, endpointKey{}, endpoint) |
| 28 | } |
| 29 | |
| 30 | func GetEndpoint(ctx context.Context) string { |
| 31 | if ctx == nil { |
no outgoing calls
no test coverage detected