homepage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CounterColors = [10]string{"#fff", "#800", "#f00", "#080", "#0f0", "#008", "#00f", "#ff0", "#0ff", "#f0f"}
)

Functions

This section is empty.

Types

type CounterData

type CounterData struct {
	Value int
	Color string
}

type HomeApiHandler

type HomeApiHandler struct{}

HomeApiHandler Implements types.HandlerRegistrar interface

func (*HomeApiHandler) Handler

func (h *HomeApiHandler) Handler(engine *gin.Engine)

Handler Implements PageRouteRegistrar interface

func (*HomeApiHandler) Initialize

func (h *HomeApiHandler) Initialize(_ *types.HandlerInitContext)

Initialize is called before the handler is registered

type HomePageData

type HomePageData struct {
	Time string `json:"time"`
}

HomePageData is the response for the time call

type HomePageHandler

type HomePageHandler struct{}

Handler Implements types.HandlerRegistrar interface

func (*HomePageHandler) Handler

func (h *HomePageHandler) Handler(engine *gin.Engine)

Handler Implements RouteRegistrar interface

func (*HomePageHandler) Initialize

func (h *HomePageHandler) Initialize(_ *types.HandlerInitContext)

Initialize is called before the handler is registered

Jump to

Keyboard shortcuts

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