routehttp

package
v0.0.0-...-e053da5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package routehttp provides http mux

It defines routing for Opensvc listener daemons

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, enableUI bool) *T

New returns *T with log, rootDaemon it prepares middlewares and routes for Opensvc daemon listeners when enableUI is true swagger-ui is serverd from /ui

func (*T) ServeHTTP

func (t *T) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServerHTTP implement http.Handler interface for T

Jump to

Keyboard shortcuts

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