common

module
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0

README

Common

CircleCI Godoc

This repository contains GO libraries used in the different components of Perses.

This set of libraries aims to provide a way:

  • to handle processes management with graceful stop
  • to define an HTTP API
  • to handle the configuration

Note: These libraries are mainly designed to ease the development of Perses. As it is still a beta, breaking change can happen between two releases. But as there is nothing really specific to Perses itself, you can use it at your own risk.

Here's a short description about what each package provides:

  • app: provides a struct to be used to help to start an application (usually with an HTTP API)
  • async: provides different ways to manage an asynchronous job
  • config: provides a config resolver that helps to manage the configuration. It also provides a default configuration for etcd
  • echo: provides a builder that helps to manage middlewares, apis and help to start a server with a context management.
  • etcd: provides a dao that wraps the etcd client to simplify a bit how to use it
  • slices: provides utility methods to manipulate slices (mostly slices of string)

Directories

Path Synopsis
Package app is exposing a struct to handle the building and the management of the different tasks coming from the package async.
Package app is exposing a struct to handle the building and the management of the different tasks coming from the package async.
Package async provide different kind of interface and implementation to manipulate a bit more safely the go routing.
Package async provide different kind of interface and implementation to manipulate a bit more safely the go routing.
taskhelper
Package taskhelper provides struct and methods to help to synchronize different async.Task together and to simply start the async.Task properly This package should mainly used through the package app and not directly by the developer.
Package taskhelper provides struct and methods to help to synchronize different async.Task together and to simply start the async.Task properly This package should mainly used through the package app and not directly by the developer.
Package config provides a single way to manage the configuration of your application.
Package config provides a single way to manage the configuration of your application.
Package echo is exposing a struct to handle the building and the management of the different tasks coming from the async package.
Package echo is exposing a struct to handle the building and the management of the different tasks coming from the async package.
Package slices provides utility methods to manipulate slices (mostly slices of string).
Package slices provides utility methods to manipulate slices (mostly slices of string).

Jump to

Keyboard shortcuts

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