gwp

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

Go codecov Codacy Badge Go Report Card

gwp

This package wants to offer the community and implement workers with the pure Go code for Golangers, without any other dependency just Uuid. It allows you to expose an http server to answer the response of health checks, stats, debug pprof and the main "workers". Workers for consumer queues, channel processes and other things that you think worker needs.

Prerequisites

Golang version >= 1.14

Features

  • Setup http server to monitoring yours;
    • /stats with workers, showing statuses her, number of goroutines, number of cpus and more;
    • /health-check that look for status of workers;
    • /debug/pprof expose all endpoints of investivate golang runtime http;
  • Allow multiple concurrencies of work, handle errors and restart always worker;

Documentation

TODO

Examples

Simple Worker
Simple Worker Consume SQS
Simple Worker Consume Rabbit

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *workerServer

New build an #workerServer with #defaultConfig

func NewWithConfig

func NewWithConfig(configs map[string]interface{}) *workerServer

NewWithConfig build an #workerServer by the settings

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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