github.com/odigos-io/odigos/hooks/go/gin
:
LoggerMiddleware
and AuthMiddleware
:
odigos.gin.middleware.func
.
In the above example, these are main.main.LoggerMiddleware.func2
and main.main.AuthMiddleware.func3
.
--onprem-token=<YOUR_TOKEN>
).
Next create a folder for your sample app and initialize the Go module:
net/http
that demonstrates how to use the Go hooks:
Dockerfile
:
deployment.yaml
:
IMAGE_TAG
environment variable you defined above:
kubectl port-forward
:
localhost:16686
in your browser.