router

package
v0.0.2-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 60 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	APIMount = "/api"
)

Variables

WireSet provides a wire set for this package.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(

	web WebHandler,
) *Router

NewRouter returns a new http.Handler that routes traffic to the appropriate handlers.

func ProvideRouter

func ProvideRouter(

	web WebHandler,
) *Router

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

type WebHandler

type WebHandler interface {
	http.Handler
}

WebHandler is an abstraction of an http handler that handles web calls.

func NewWebHandler

func NewWebHandler(
	appCtx context.Context,
	config *types.Config,
	authenticator authn.Authenticator,
	instanceCtrl *instance.Controller,
	serverCtrl *server.Controller,
	userCtrl *user.Controller,
	tenantCtrl *tenant.Controller,
	projectCtrl *project.Controller,
	envCtrl *environment.Controller,
	authCtrl *auth.Controller,
	ghAppCtrl *githubapp.Controller,
	gitPublicCtrl *gitpublic.Controller,
	appCtrl *application.Controller,
	varCtrl *variable.Controller,
	deploymentCtrl *deployment.Controller,
	logsCtrl *logs.Controller,
	volumeCtrl *volume.Controller,
	templCtrl *template.Controller,
	favCtrl *favorite.Controller,
) WebHandler

NewWebHandler returns a new WebHandler.

func ProvideWebHandler

func ProvideWebHandler(
	appCtx context.Context,
	config *types.Config,
	authenticator authn.Authenticator,
	instanceCtrl *instance.Controller,
	serverCtrl *server.Controller,
	userCtrl *user.Controller,
	tenatCtrl *tenant.Controller,
	projectCtrl *project.Controller,
	environmentCtrl *environment.Controller,
	authCtrl *auth.Controller,
	ghAppCtrl *githubapp.Controller,
	gitPublicCtrl *gitpublic.Controller,
	appCtrl *application.Controller,
	varCtrl *variable.Controller,
	deploymentCtrl *deployment.Controller,
	logsCtrl *logs.Controller,
	volumeCtrl *volume.Controller,
	templCtrl *template.Controller,
	favCtrl *favorite.Controller,
) WebHandler

Jump to

Keyboard shortcuts

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