web

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWeb

func NewWeb() command.Task[config.WebConfig]

Types

type NavBarLink struct {
	Path string
	Name string
}

type Options

type Options struct {
	Version     version.Info
	NavBarLinks []NavBarLink
}

type Route

type Route interface {
	GetOrder() int

	GetDefault() *string

	GetNavBarLinks() []NavBarLink

	Register(router gin.IRouter, templateExecutor TemplateExecutor, queryable remote.Queryable)
}

func NewAlertTester

func NewAlertTester(config *config.WebConfig) (Route, error)

type RunningServer

type RunningServer interface {
	Stop()
}

type Server

type Server interface {
	Start() (RunningServer, error)
}

type TemplateExecutor

type TemplateExecutor interface {
	ExecuteTemplate(requestContext *gin.Context, name string)
}

func NewTemplateExecutor

func NewTemplateExecutor(options *Options) TemplateExecutor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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