dashboard

package
v0.0.2-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType     = "Content-Type"
	ContentTypeJSON = "application/json"
	ContentTypeHTML = "text/html; charset=utf-8"
)
View Source
const DistDir = "app/dist"

Variables

View Source
var StaticFiles embed.FS

Functions

func AddMeta

func AddMeta(metaType enum.MetaType, pluginType enum.PluginType, version string)

Types

type BoardSvc

type BoardSvc struct {
	// contains filtered or unexported fields
}

func NewBoardSvc

func NewBoardSvc(gapOpts *gap.Options, opts *dashboard.Options) *BoardSvc

func (*BoardSvc) Add

func (s *BoardSvc) Add(method string, path string, handler http.Handler)

func (*BoardSvc) Get

func (s *BoardSvc) Get(path string, handler http.Handler)

func (*BoardSvc) HandleAPIs

func (s *BoardSvc) HandleAPIs() []RouteRecord

func (*BoardSvc) HandleSPA

func (s *BoardSvc) HandleSPA() http.Handler

func (*BoardSvc) Post

func (s *BoardSvc) Post(path string, hanler http.Handler)

func (*BoardSvc) QueryMetas

func (s *BoardSvc) QueryMetas() http.Handler

func (*BoardSvc) QueryPublished

func (s *BoardSvc) QueryPublished() http.Handler

func (*BoardSvc) QueryReceived

func (s *BoardSvc) QueryReceived() http.Handler

type RouteRecord

type RouteRecord struct {
	Method  string
	Path    string
	Handler http.Handler
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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