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}).
}
Click to show internal directories.
Click to hide internal directories.