server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Dev enables verbose error pages.
	Dev bool
	// Version is shown in the footer and used for asset cache busting.
	Version string
}

Options configures a Server.

type Server

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

Server renders the gitview UI for one or more repositories.

func New

func New(ctx context.Context, repos []backend.Repo, opts Options) (*Server, error)

New builds a server for the given repositories. With exactly one repository, / redirects straight to it; with several, / lists them.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
Code generated from @primer/octicons 19.15.1 (MIT).
Code generated from @primer/octicons 19.15.1 (MIT).

Jump to

Keyboard shortcuts

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