Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

space307/go-utils

Repository files navigation

Go-Utils. Reusable GoLang utils.

Build Status

Table of Contents

  1. debug.go
  2. grace.go
  3. ticker.go
  4. config.go
  5. api.go
  6. server_group.go
  7. tracing.go
  8. checker.go
  9. vault.go
  10. json_formatter.go
  11. amqp-kit
  12. consul

Starting Pprof Server to a free port from a specified range. Prints all goroutine stacks to stdout

Package processes the low-level operating system call : syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP .

Creates a new ticker, which sends current time to its channel every second, minute, or hour after the specified delay. Wrap over standard time

A set of basic utilities for working with config files

A simple REST API server based on gorilla mux, go-kit handlers, and a standard http.Server.

ServerGroup allows to start several sg.Server objects and stop them, tracking errors.

HTTP client based on standart net/http client with additional method adding a Zipkin span to request.

Helper for execute series of tests

Helper for working with vault hashicorp

Implementation JSONFormatter of logrus with supporting additional fields for output

AMQP wrapper in go-kit style

Consul package contains a wrapper for Consul API for simplicity registration a service in the local agent.