webSrv

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexView added in v0.4.0

type IndexView struct {
	Title string
}

type WebServer

type WebServer struct {
	StaticFs    embed.FS
	TemplatesFs fs.FS
	// contains filtered or unexported fields
}

func NewWebServer

func NewWebServer(store *store.Store, router *mux.Router, serverConfig *config.ServerConfig) *WebServer

func (*WebServer) Config

func (d *WebServer) Config() *config.ServerConfig

func (*WebServer) HtmlWriterRender

func (d *WebServer) HtmlWriterRender(w http.ResponseWriter, content interface{}, filenames ...string)

func (*WebServer) JsWriterRender added in v0.4.0

func (d *WebServer) JsWriterRender(w http.ResponseWriter, content interface{}, filenames ...string)

func (*WebServer) Log

func (s *WebServer) Log() *logrus.Entry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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