common

package
v0.0.0-...-e22f40b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package common contains common code for backend and frontend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	BaseURI          string
	ReqPath          string
	RepoSpec         string
	CurrentUser      users.User
	DisableReactions bool
	DisableUsers     bool

	ChangeID uint64 `json:",omitempty"` // ChangeID is the current change ID, or 0 if not applicable (e.g., current page is /changes).
	PrevSHA  string `json:",omitempty"` // PrevSHA is the previous commit SHA, or empty if not applicable (e.g., current page is not /{changeID}/files/{commitID}).
	NextSHA  string `json:",omitempty"` // NextSHA is the next commit SHA, or empty if not applicable (e.g., current page is not /{changeID}/files/{commitID}).
}

Jump to

Keyboard shortcuts

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