Go

Setup

import (
	"github.com/berlioz-the/connector-go"
)

Web Server

Wrap http handlers with berlioz.WrapFunc.

http.HandleFunc("/", berlioz.WrapFunc(myHandler))

Send HTTP Request to Service

_, body, err := berlioz.Service("inventory").Request().Get(r.Context(), "/items")

Send HTTP Request to Cluster

_, body, err := berlioz.Cluster("inventory").Request().Get(r.Context(), "/items")