web

package
v0.0.0-...-7dfca68 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package web contains web related code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Tix           *data.Data
	Prefix        string
	Site          string
	ShortSite     string // Perl5 or Perl6
	SnapshotTime  time.Time
	StaticDir     string
	GitHubPrefix  string // https://github.com/org/repo
	ServerVersion string
}

Server holds state for the webserver.

func (*Server) NewPage

func (s *Server) NewPage(id string, c interface{}) *page.Page

NewPage creates a new Page object and initializes the fields.

func (*Server) NewRouter

func (s *Server) NewRouter() http.Handler

NewRouter sets up the http.Handler s for our server.

type Ticket

type Ticket struct {
	ID      string `json:"Id"`
	Status  string
	Subject string
}

Ticket is a struct that is used for search results

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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