package
0.0.0-20210323100819-93d825d597b5
Repository: https://github.com/kulycloud/common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Return best communicator for endpoints based on response time If no valid communicator is found nil and an error is returned.
No description provided by the author
create valid communicators for endpoints if withMetrics is set, the slice will be sorted by metrics, so the first communicator is the best and the worst is last otherwise the communicators will be in the same order as the endpoints.
No description provided by the author
No description provided by the author
No description provided by the author
pretty quick but does not optimize load to endpoints based on metrics.
caution this causes n + 1 round trips with n being the number of endpoints.

# Constants

No description provided by the author

# Variables

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
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Request.
Response.
No description provided by the author

# Type aliases

ByteSlice.
handler function.
Headers headers are stored in a map[string]string in contrast to the way the net/http package stores them (map[string][]string) the values of the header are stored in a string separated by semicolons.
No description provided by the author