web

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s *store.Store, g syncer.GitHub, version string) http.Handler

Types

type FilterChip

type FilterChip struct{ Label, URL string }

type Group

type Group struct {
	Totals                                     Stats
	Tool, RuleID, RuleName, Priority, Severity string
	RepositoryCount, AlertCount                int
	Description, URL, Name                     string
	Critical, High, Medium, Low, Other         int
	UpdatedAt                                  time.Time
}

type Page

type Page struct {
	TotalGroups                                                         int
	View, Title, Eyebrow, Notice, Version, ErrorMessage                 string
	Action, ResetURL, CurrentURL, BackURL, BackLabel, Query, RefreshURL string
	Chips                                                               []FilterChip
	RuleRepositories                                                    []RepoView
	RuleTags                                                            []string
	Organizations                                                       []store.Organization
	Repositories                                                        []RepoView
	AllRepositories                                                     []RepoView
	Groups                                                              []Group
	Alerts                                                              []store.Alert
	Repository                                                          *RepoView
	Alert                                                               *store.Alert
	Stats                                                               Stats
	Filters                                                             map[string][]string
	Tools, Rules                                                        []string
	Severities, Visibilities                                            []string
	Languages                                                           []string
	RuleTool, RuleID, RuleName                                          string
	RulePriority, RuleSeverity, RuleDescription, RuleMessage            string
	RuleRepositoryCount                                                 int
	FilterOpen                                                          string
	SortLinks                                                           map[string]string
	RepoSortLinks                                                       map[string]string
	AlertSortLinks                                                      map[string]string
	SortColumn, SortDirection                                           string
}

type RepoView

type RepoView struct {
	Totals Stats
	store.Repository
	Org                                string
	AlertCount                         int
	Critical, High, Medium, Low, Other int
}

type Server

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

type Stats

type Stats struct {
	Totals                                   *Stats
	Open, Critical, High, Medium, Low, Other int
	AffectedRepositories, TotalRepositories  int
	LastSync                                 *time.Time
}

Jump to

Keyboard shortcuts

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