handlers

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPageModel = errors.New("invalid page model")

Functions

func Clients

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

Clients will return the main "clients" page using a go template

func CustomFileServer

func CustomFileServer(handler http.Handler, root http.FileSystem, NotFoundHandler http.HandlerFunc) http.Handler

Custom FileServer which does the same as http.FileServer, but serves custom page on 404 error

func Epoch

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

Epoch will return the main "epoch" page using a go template

func Epochs

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

Epochs will return the main "epochs" page using a go template

func Forks added in v1.7.0

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

Forks will return the main "forks" page using a go template

func Index

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

Index will return the main "index" page using a go template

func IndexData

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

func InitPageData

func InitPageData(w http.ResponseWriter, r *http.Request, active, path, title string, mainTemplates []string) *types.PageData

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)
func Search(w http.ResponseWriter, r *http.Request)

Search will return the main "search" page using a go template

func SearchAhead

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

SearchAhead handles responses for the frontend search boxes

func Slot

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

Index will return the main "index" page using a go template

func SlotBlob

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

SlotBlob handles responses for the block blobs tab

func Slots

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

Slots will return the main "slots" page using a go template

func SlotsFiltered

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

SlotsFiltered will return the filtered "slots" page using a go template

func Validator

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

Validator will return the main "validator" page using a go template

func ValidatorSlots

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

Slots will return the main "slots" page using a go template

func Validators

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

Validators will return the main "validators" page using a go template

func ValidatorsActivity added in v1.8.4

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

ValidatorsActivity will return the filtered "slots" page using a go template

Types

This section is empty.

Jump to

Keyboard shortcuts

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