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 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
Click to show internal directories.
Click to hide internal directories.