Documentation
¶
Index ¶
- Constants
- type ServerPool
- func (s *ServerPool) GetHttpClient() client.HttpClient
- func (s *ServerPool) GetService(name string) *service
- func (s *ServerPool) GetUrl(serviceName string, path string) string
- func (s *ServerPool) Run(req *request.Request, respResult any) (*response.Response, error)
- func (s *ServerPool) SetHttpClient(client client.HttpClient)
Constants ¶
View Source
const ( ConnectionTimeout = "server.http.client.timeout" RetryOnConnectionFailure = "server.http.retry.onConnectionFailure" RetryEnabled = "server.http.retry.enabled" RetryOnAllOperations = "server.http.retry.allOperations" MaxRetriesOnNextServiceInstance = "server.http.retry.maxRetriesOnNextServiceInstance" RetryableStatusCodes = "server.http.retry.retryableStatusCodes" ProtocolHttp = "http://" ProtocolHttps = "https://" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerPool ¶
func GetInstance ¶
func GetInstance() *ServerPool
func (*ServerPool) GetHttpClient ¶ added in v0.6.21
func (s *ServerPool) GetHttpClient() client.HttpClient
func (*ServerPool) GetService ¶ added in v0.5.20
func (s *ServerPool) GetService(name string) *service
func (*ServerPool) GetUrl ¶ added in v0.5.20
func (s *ServerPool) GetUrl(serviceName string, path string) string
func (*ServerPool) SetHttpClient ¶ added in v0.6.16
func (s *ServerPool) SetHttpClient(client client.HttpClient)
Click to show internal directories.
Click to hide internal directories.