handler

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthcheckHandler added in v0.35.0

type HealthcheckHandler struct{}

func NewHealthcheckHandler added in v0.35.0

func NewHealthcheckHandler() *HealthcheckHandler

func (*HealthcheckHandler) Http added in v0.35.0

func (h *HealthcheckHandler) Http(respWriter http.ResponseWriter, request *http.Request)

type HomepageData

type HomepageData struct {
	RepoChangelogs []dashboard.DashboardRepoChangelog
}

type HomepageHandler

type HomepageHandler struct {
	CacheService     cache.CacheAdapter
	DashboardService dashboard.DashboardProvider
}

func NewHomepageHandler added in v0.35.0

func NewHomepageHandler(dashboardService *dashboard.DashboardService, cacheService cache.CacheAdapter) *HomepageHandler

func (*HomepageHandler) FetchChangelogs

func (h *HomepageHandler) FetchChangelogs(ctx context.Context, expireSeconds string)

func (*HomepageHandler) FetchChangelogsTicker

func (h *HomepageHandler) FetchChangelogsTicker(timerSeconds int)

func (*HomepageHandler) FetchRepos

func (h *HomepageHandler) FetchRepos(ctx context.Context, expireSeconds string)

func (*HomepageHandler) FetchReposTicker

func (h *HomepageHandler) FetchReposTicker(timerSeconds int)

func (*HomepageHandler) Http

func (h *HomepageHandler) Http(respWriter http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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