landingweb

package
v1.3.2-0...-4312943 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(router gin.IRouter, conf Config)

Register register landing web in router.

Types

type Config

type Config struct {
	Traced bool
}

Config defines the web config.

type Data

type Data struct {
	webbase.Data
}

Data defines the data for landing.html template.

func NewData

func NewData(ctx *gin.Context) Data

NewData returns landing page data.

type Web

type Web struct {
	webbase.Base
}

Web defines the web handler module.

func New

func New(conf Config) *Web

New returns a new web handler module.

func (*Web) Landing

func (w *Web) Landing() gin.HandlerFunc

Landing returns the landing page. (./web/landing.html)

Jump to

Keyboard shortcuts

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