gotoolbox

module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0

README

Go toolbox

Various packages for Go projects. This is a mixed bag of functions and packages that are useful with no general theme.

We could name it utils but "toolbox" is a better description, this is a library with all the weird parts you find in a proper toolbox with customized screwdrivers, hacked-off box keys, welded-together contraptions and objects that make you think "oh, I can't imagine what this is for".

Some of these are gathered from the now-defunct ExploratoryEngineering organization.

Referenced libraries

  • The Kong library for parameters. This is used throughout the parameter structs.
  • gRPC
  • Logrus for logging
  • grpc-middleware for metrics interceptors
  • Prometheus golang client library (transient, through grpc-middleware)

Directories

Path Synopsis
Package grpcutil contains utility functions to create gRPC clients and servers Package grpcutil contains nice-to-have gRPC client and server types to reduce the boilerplate a bit.
Package grpcutil contains utility functions to create gRPC clients and servers Package grpcutil contains nice-to-have gRPC client and server types to reduce the boilerplate a bit.
Package pubsub contains types for a channel-based publish/subscribe pattern that runs in a single process.
Package pubsub contains types for a channel-based publish/subscribe pattern that runs in a single process.
Package rest contains utilties for a RESTful service
Package rest contains utilties for a RESTful service
Package toolbox contains various nice-to-have functions and types such as log setup, formatting and so on.
Package toolbox contains various nice-to-have functions and types such as log setup, formatting and so on.

Jump to

Keyboard shortcuts

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