routes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueryHandler

func GetQueryHandler(c proxy.QueryClient, ct ChannType) http.HandlerFunc

func Run

func Run(router *chi.Mux, client client.Client, agent proxy.QueryClient)

Run starts the HTTP server with the provided router and client. It listens on port 5000 and handles incoming requests. If an error occurs while starting the server, it panics.

Types

type ChannType

type ChannType int8
const (
	BI_CHANN  ChannType = 0
	TRI_CHANN ChannType = 1
)

type CheckHTTPHealthRequest added in v1.1.0

type CheckHTTPHealthRequest struct {
	URL string `json:"url,omitempty"`
}

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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