clgo

module
v0.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: MIT

README

clgo Test Checks

Opinionated but Re-usable Go libraries for the Crewlinker platform

usage

  • Setup the development environment mage -v dev
  • Run the full test suite: mage -v test
  • To release a new version: mage -v release v0.1.1

backlog

  • SHOULD update github.com/caarlos0/env/v6 to v8
  • MUST include a mechanism to provide isolated schemas to tests, using a "versioned" migration strategy in a migraiton directory
  • MUST include tracing, and re-add the test for contextual postgres logging (from the old 'back' repo)
  • SHOULD upgrade otel packages when otelsql package is supported
  • SHOULD add the Atlasgo github integration for checking migrations
  • SHOULD Allow configuration of the postgres application name to diagnose connections
  • SHOULD allow iam authentication to a database
  • SHOULD test our clserve.Handle with http2 server/client
  • SHOULD test our clserve.Handle with websocket hijack/upgrade
  • COULD develop metric middleware for aws client so we can measure (average) latency (per service?)?

Correct Otel dependencies

OTEL is still a bit of a moving target. So if the dependencies break after running go mod tidy. This is the set of constraints that should make it right.

	go.opentelemetry.io/contrib/detectors/aws/ecs v1.12.0
	go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws v0.37.0
	go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.37.0
	go.opentelemetry.io/contrib/propagators/aws v1.12.0
	go.opentelemetry.io/otel v1.11.2
	go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.34.0
	go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.11.2
	go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.11.2
	go.opentelemetry.io/otel/metric v0.34.0
	go.opentelemetry.io/otel/sdk v1.11.2
	go.opentelemetry.io/otel/sdk/metric v0.34.0
	go.opentelemetry.io/otel/trace v1.11.2

Directories

Path Synopsis
Package clauthn provides re-usable authentication (AuthN).
Package clauthn provides re-usable authentication (AuthN).
Package clauthz provides Authorization (AuthZ) functionality.
Package clauthz provides Authorization (AuthZ) functionality.
Package claws provides the official AWS SDK (v2)
Package claws provides the official AWS SDK (v2)
Package clbuildinfo provides the official AWS SDK (v2)
Package clbuildinfo provides the official AWS SDK (v2)
Package clcdk contains reusable infrastructruce components using AWS CDK.
Package clcdk contains reusable infrastructruce components using AWS CDK.
Package clconfig provides re-usable configuration utilities
Package clconfig provides re-usable configuration utilities
Package clconnect provides generic fx dependency for standard ConnectRPC services.
Package clconnect provides generic fx dependency for standard ConnectRPC services.
v1
Package clent includes re-usable components for working with the Ent ORM.
Package clent includes re-usable components for working with the Ent ORM.
Package clid implements a prefixed ulid ID type.
Package clid implements a prefixed ulid ID type.
Package cllambda providees reusable fx code for building AWS Lambda infra
Package cllambda providees reusable fx code for building AWS Lambda infra
Package clmysql provides modules for interacting with MySQL.
Package clmysql provides modules for interacting with MySQL.
clmymigrate
Package clmymigrate implements the postgres migration logic.
Package clmymigrate implements the postgres migration logic.
Package cloapi provides an OpenAPI specced primitives.
Package cloapi provides an OpenAPI specced primitives.
Package clotel provides re-usable components for OpenTelemetry integration
Package clotel provides re-usable components for OpenTelemetry integration
Package clpostgres provides re-usable components for using PostgreSQL
Package clpostgres provides re-usable components for using PostgreSQL
clpgmigrate
Package clpgmigrate implements the postgres migration logic.
Package clpgmigrate implements the postgres migration logic.
cltx
Package cltx is a small package for adding and retrieving pgx transactions from the context.
Package cltx is a small package for adding and retrieving pgx transactions from the context.
Package clredis provides reusable components for using Redis
Package clredis provides reusable components for using Redis
Package clserve provides buffered HTTP response serving to support error handling
Package clserve provides buffered HTTP response serving to support error handling
Package clwebserver implements serving of HTTP
Package clwebserver implements serving of HTTP
Package clzap provides logging using the zap logging library
Package clzap provides logging using the zap logging library
Package main defines automation targets using Magefile
Package main defines automation targets using Magefile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL