middleware

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 7 Imported by: 0

README

Resty - Middlewares

GoDoc Go Report Card License

Description

resty-middleware is a Go package that provides multiple middleware for Resty.

Requirements

Resty Middlewares requires Go 1.16 or later and Resty.

Instalation

Use go get.

$ go get github.com/lana/resty-middleware

Then import the package into your own code:

import "github.com/lana/resty-middleware"

License

This project is released under the MIT licence. See LICENSE for more details.

Documentation

Overview

Package middleware provides middlewares for Resty.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prometheus

func Prometheus(client *resty.Client, subsystem string) *resty.Client

Prometheus generates a new set of metrics with a certain subsystem name from resty requests.

func PrometheusWithRegister

func PrometheusWithRegister(client *resty.Client, reg prom.Registerer, subsystem string) *resty.Client

PrometheusWithRegister generates a new set of metrics with a certain subsystem name from resty requests with a custom prometheus registerer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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