github_standards

package
v1.0.0-costsupdate.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListHandler added in v1.0.0

func ListHandler(w http.ResponseWriter, r *http.Request)

func Register

func Register(ctx context.Context, mux *http.ServeMux, dbPath string) (err error)

Register attached the route to the list view

func SetCtx added in v1.0.0

func SetCtx(ctx context.Context)

func SetDBPath added in v1.0.0

func SetDBPath(path string)

Types

type CountValues added in v1.0.0

type CountValues struct {
	Count             int `json:"count"`
	CompliantBaseline int `json:"compliant_baseline"`
	CompliantExtended int `json:"compliant_extended"`
}

type Counters added in v1.0.0

type Counters struct {
	Totals *CountValues `json:"totals"`
	This   *CountValues `json:"current"`
}

type GHSResponse added in v1.0.0

type GHSResponse struct {
	*apiresponse.Response
	Counters     *Counters            `json:"counters,omitempty"`
	QueryFilters map[string]string    `json:"query_filters,omitempty"`
	Result       []ghs.GithubStandard `json:"result"`
}

-- Standard how to cast result to common type?

func NewResponse added in v1.0.0

func NewResponse() *GHSResponse

Jump to

Keyboard shortcuts

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