drivers

package
v0.3.85 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package drivers provides code that is neither application or business specific.

Drivers are a set of generic code packages. In most cases, it can be used in other applications without further modification.

As an example, a driver could be the UI rendering logic for a desktop application. An adapter would specify that a dialog should have a specific size, title and content. But the rendering logic for the dialog on the screen and listening for input is part of the drivers layer.

In a system that promotes code re-use and some amount of uniformity across microservices, most drivers would exist in a separate repository and the drivers layer would be minimal or even empty. However, for this application which aims to be relatively self-contained, the drivers layer is relatively large.

Directories

Path Synopsis
Package config provides support for loading configuration from various sources into a struct.
Package config provides support for loading configuration from various sources into a struct.
flagoptions
Package flagoptions implements config.Options using the standard library flag package.
Package flagoptions implements config.Options using the standard library flag package.
providers/k8smount
Package k8smount contains a Koanf provider for loading configuration from Kubernetes volume mounts, i.e.
Package k8smount contains a Koanf provider for loading configuration from Kubernetes volume mounts, i.e.
splitter
Package splitter provides unmarshalers for Koanf config structs to convert strings to string slices using a particular delimiter.
Package splitter provides unmarshalers for Koanf config structs to convert strings to string slices using a particular delimiter.
Package exit provides constants for process exit codes.
Package exit provides constants for process exit codes.
Package pgsql provides a PostgreSQL implementation of sql.DB.
Package pgsql provides a PostgreSQL implementation of sql.DB.
...
rpcerrors
Package rpcerrors provides a small utility for creating ConnectRPC errors based on string messages instead of existing errors.
Package rpcerrors provides a small utility for creating ConnectRPC errors based on string messages instead of existing errors.
term

Jump to

Keyboard shortcuts

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