drivers

package
v0.4.44 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 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.
secret
Package secret provides helpers for secret configuration values, such as passwords or private keys.
Package secret provides helpers for secret configuration values, such as passwords or private keys.
split
Package split provides unmarshalers for Koanf config structs to convert strings to string slices using a particular delimiter.
Package split provides unmarshalers for Koanf config structs to convert strings to string slices using a particular delimiter.
Package pgsql provides a PostgreSQL implementation of sql.DB.
Package pgsql provides a PostgreSQL implementation of sql.DB.
coverage
Package coverage exposes a HTTP handler to execute runtime/coverage functions on-demand without having to terminate the process.
Package coverage exposes a HTTP handler to execute runtime/coverage functions on-demand without having to terminate the process.
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