web

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package web implements the web-facing components of the browser, including the UI and GitHub hook hyandler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(
	version string,
	c *githubx.Connector,
	o *analyzer.Orchestrator,
	key *rsa.PrivateKey,
	hookSecret string,
	db *sql.DB,
) http.Handler

NewRouter returns an http.Handler that routes requests to the appropriate handler.

Types

type Handler

type Handler interface {
	Route() (string, string)
	Template() string
	ActiveMenuItem() components.MenuItem
	View(ctx *gin.Context) (string, interface{}, error)
}

Handler is an interface for handlers that render human-readable pages.

Directories

Path Synopsis
pages

Jump to

Keyboard shortcuts

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