Categorygithub.com/ericbutera/go-api
modulepackage
0.0.8
Repository: https://github.com/ericbutera/go-api.git
Documentation: pkg.go.dev

# README

API GO

Experiment for kubernetes and golang.

Docs

Generated with swag. Install with go install github.com/swaggo/swag/cmd/swag@latest.

Config

Configuration handled by ENV variables prefixed with GOAPI_. See .env.sample.

Container Registry

  • microk8s enable registry
  • update Makefile version, use make image-build and make image-push.
  • update kubernetes/deployment.yml
    • update image tag
    • kubectl apply -f kubernetes/deployment.yml

Telemetry

Goals:

  • DataDog
  • OpenTelemetry

Forward:

  • Jaeger: kubectl port-forward $(kubectl get pods -l=app="jaeger" -o name) 16686:16686
  • Collector: kubectl port-forward -n default service/simplest-collector 14268:14268 --address 0.0.0.0

Jaeger UI

Debug

See DEBUG.

CI/CD

Notes

  • GOPATH is a project level env var.
  • use gimme to manage go
  • gimme has a different base path between linux and macos (with brew).

# Packages

No description provided by the author
TODO: look into sub commands.
Provides configuration for the API.
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag.