std

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT

README

Pharia Data Standard Library Logo

Pharia Data Standard Library

Go Report Card GoDoc License

Standard library packages for Go services at Pharia Data (Aleph Alpha). This repository provides common utilities and clients for services such as logging, metrics, database access, and message queues.

Adding as a Dependency

To use this package in your Go project, add it as a dependency:

go get github.com/Aleph-Alpha/std

Importing Packages

This module contains several packages that you can import into your project:

// Import the logger package
import "github.com/Aleph-Alpha/std/v1/logger"

// Import the minio package
import "github.com/Aleph-Alpha/std/v1/minio"

// Import the rabbit package
import "github.com/Aleph-Alpha/std/v1/rabbit"

Running Tests

This project includes several methods for running tests, with special handling for environments using Colima for Docker containerization.

Standard Tests

To run basic tests without container support:

make test

Tests with Containers

For tests that require Docker containers (like integration tests), use:

make test-with-containers

This command automatically detects if Colima is running on your system:

  • If Colima is detected, it will configure the proper Docker socket path and disable Ryuk
  • If Colima is not detected, it falls back to standard Docker configuration

Manual Testing

If you need more control, you can run tests manually:

With Colima

DOCKER_HOST=unix://$HOME/.colima/default/docker.sock TESTCONTAINERS_RYUK_DISABLED=true go test -v ./...

Go Packages Documentation

Generated on Mon Nov 10 11:21:51 CET 2025

Packages

Directories

Path Synopsis
v1
embedding
Package embedding provides a unified, high-level API for computing text embeddings through the Aleph Alpha inference service.
Package embedding provides a unified, high-level API for computing text embeddings through the Aleph Alpha inference service.
logger
Package logger provides structured logging functionality for Go applications.
Package logger provides structured logging functionality for Go applications.
metrics
Package metrics provides Prometheus-based monitoring and metrics collection functionality for Go applications.
Package metrics provides Prometheus-based monitoring and metrics collection functionality for Go applications.
minio
Package minio provides functionality for interacting with MinIO/S3-compatible object storage.
Package minio provides functionality for interacting with MinIO/S3-compatible object storage.
postgres
Package postgres provides functionality for interacting with PostgreSQL databases.
Package postgres provides functionality for interacting with PostgreSQL databases.
qdrant
Package qdrant provides a modular, dependency-injected client for the Qdrant vector database.
Package qdrant provides a modular, dependency-injected client for the Qdrant vector database.
rabbit
Package rabbit provides functionality for interacting with RabbitMQ.
Package rabbit provides functionality for interacting with RabbitMQ.
tracer
Package tracer provides distributed tracing functionality using OpenTelemetry.
Package tracer provides distributed tracing functionality using OpenTelemetry.

Jump to

Keyboard shortcuts

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