api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileSystemMiddleware

func FileSystemMiddleware(fallthroughHandler http.Handler, wdfs fs.FS) http.Handler

func NoCache

func NoCache(handler http.Handler) http.Handler

func RegisterConfigAPI

func RegisterConfigAPI(router *httprouter.Router, cfg *config.Components)

func RegisterEventsAPI

func RegisterEventsAPI(router *httprouter.Router, hub *events.EventHub, logger *log.Logger)

func RegisterViews

func RegisterViews(router *httprouter.Router, logger *log.Logger, wdfs fs.FS, mdFilepath string, cfg *config.Components)

Types

type ConfigAPI

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

func (*ConfigAPI) MermaidConfig

func (a *ConfigAPI) MermaidConfig(writer http.ResponseWriter, _ *http.Request, _ httprouter.Params)

func (*ConfigAPI) RevealConfig

func (a *ConfigAPI) RevealConfig(writer http.ResponseWriter, _ *http.Request, _ httprouter.Params)

type ContentEventHandler

type ContentEventHandler chan events.ContentEvent

func (ContentEventHandler) Close

func (h ContentEventHandler) Close() (err error)

func (ContentEventHandler) OnEvent

type Events

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

func (*Events) EventHandler

func (e *Events) EventHandler(writer http.ResponseWriter, req *http.Request, _ httprouter.Params)

type Views

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

func (*Views) IndexPage

func (p *Views) IndexPage(writer http.ResponseWriter, _ *http.Request, _ httprouter.Params)

func (*Views) RenderedMarkdown

func (p *Views) RenderedMarkdown(writer http.ResponseWriter, _ *http.Request, _ httprouter.Params)

Jump to

Keyboard shortcuts

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