There is a trending 'microservice' library called go-kit. I've been using the go-kit library for a while now. The library provide a lot of convenience integrations that you might need in your service: with service discovery with Consul, distributed tracing with Zipkin, for example, and nice logic utilities such as round robin client side load balancing, and circuit breaking. It is also providing a way to implement communication layer, with support of RPC and REST.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kctx() { | |
_die() { | |
printf '%s\n' "$1" >&2 | |
return 1 | |
} | |
context="$1" | |
context_config_dir="$HOME/.kube/ctxcfg" | |
if [ -f "${context_config_dir}/${context}" ] ; then |