web

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSingelWebapp

func NewSingelWebapp(listener interfaces.Listener,
	opt interfaces.SingelWebappOptions, router *mux.Router) (err error)

Types

type FileListener

type FileListener struct {
	BundleJS []*FileListener
	WorkerJS []*FileListener

	sync.RWMutex
	// contains filtered or unexported fields
}

func NewFileListener

func NewFileListener(listener interfaces.Listener,
	options interfaces.SingelWebappOptions,
	index bool, path string,
	info os.FileInfo, distpath string,
	router *mux.Router) *FileListener

func (*FileListener) Handler

func (c *FileListener) Handler(w http.ResponseWriter, r *http.Request)

func (*FileListener) IndexHandler

func (c *FileListener) IndexHandler(w http.ResponseWriter, r *http.Request)

func (*FileListener) ReloadData

func (c *FileListener) ReloadData()

type SingelWebapp

type SingelWebapp struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*SingelWebapp) LocalFile

func (c *SingelWebapp) LocalFile() (err error)

func (*SingelWebapp) Watcher

func (c *SingelWebapp) Watcher()

func (*SingelWebapp) WatchingFile

func (c *SingelWebapp) WatchingFile(f *FileListener)

type TempplateVariables

type TempplateVariables struct {
	Title       string
	Description string
	BundleJS    []string
	WorkerJS    []string
}

TempplateVariables -

Jump to

Keyboard shortcuts

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