package
0.0.0-20241206101623-7f4b0acd6936
Repository: https://github.com/volts-dev/volts.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
增加超时到60s.
No description provided by the author
No description provided by the author
No description provided by the author
NewClient returns a new client.
No description provided by the author
No description provided by the author
RetryAlways always retry on error.
RetryOnError retries a request on a 500 or timeout error.
WithAddress sets the remote addresses to use rather than using service discovery.
No description provided by the author
修改Config.json的路径.
No description provided by the author
No description provided by the author
WithDialTimeout is a CallOption which overrides that which set in Options.CallOptions.
固定服务器列表.
No description provided by the author
No description provided by the author
打印请求信息.
No description provided by the author
No description provided by the author
Registry to find nodes for a given service.
No description provided by the author
Codec to be used to encode/decode requests for a given content type.
No description provided by the author
No description provided by the author
Transport to use for communication e.g http, rabbitmq, etc.
init transport.
No description provided by the author
# Variables
DefaultPoolSize sets the connection pool size.
DefaultPoolTTL sets the connection pool ttl.
DefaultRequestTimeout is the default request timeout.
DefaultRetries is the default number of times a request is tried.
DefaultRetry is the default check-for-retry function for retries.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
TODO 修改到结构里.
TODO 修改到结构里.
No description provided by the author
No description provided by the author
note that returning either false or a non-nil error will result in the call not being retried.