router

package
v0.0.0-...-fe16607 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package router Implement a small webserver offering an api to control and setup different proxy connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnHandler

func ConnHandler(proxies []proxy.Proxy) gin.HandlerFunc

ConnHandler Return all configured proxy connections.

func ConnIDHandler

func ConnIDHandler(proxies []proxy.Proxy) gin.HandlerFunc

ConnIDHandler Return the configuration for one proxy connection.

func ConnUpdateHandler

func ConnUpdateHandler(proxies []proxy.Proxy) gin.HandlerFunc

ConnUpdateHandler Update a single proxy configuration.

func HealthzHandler

func HealthzHandler() gin.HandlerFunc

HealthzHandler Indicates if the service is running healthy

func MetricsHandler

func MetricsHandler() gin.HandlerFunc

MetricsHandler Handle the metrics route for prometheus metrics.

func Setup

func Setup(proxies []proxy.Proxy) (*gin.Engine, error)

Setup Initialize a new gin engine with routes and middlewares

Types

This section is empty.

Jump to

Keyboard shortcuts

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