Documentation ¶
Overview ¶
Package changesapp is a change tracking web app.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Notification, if not nil, is used to highlight changes containing // unread notifications, and to mark changes that are viewed as read. Notification notification.Service // BodyTop provides components to include at the top of the <body> element. It can be nil. BodyTop func(context.Context, State) ([]htmlg.Component, error) }
Options for configuring changes app.
type State ¶
type State struct { ReqURL *url.URL CurrentUser users.User RepoSpec string BaseURL string // Must have no trailing slash. Can be empty string. ChangeID uint64 // ChangeID is the current change ID, or 0 if not applicable (e.g., current page is '/'). PrevSHA string // PrevSHA is the previous commit SHA, or empty if not applicable (e.g., current page is not /{changeID}/files/{commitID}). NextSHA string // NextSHA is the next commit SHA, or empty if not applicable (e.g., current page is not /{changeID}/files/{commitID}). }
func (State) RequestURL ¶
Click to show internal directories.
Click to hide internal directories.