ui

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ExtraAssetPrefix = "/extra-statics"

ExtraAssetPrefix is used for extra assets

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraAsset

type ExtraAsset struct {
	Filename string
	Ext      string
	Content  []byte
}

type Server

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

func NewServer

func NewServer(server *shttp.Server, assetsFolder string) *Server

func (*Server) AddGlobalVar

func (s *Server) AddGlobalVar(key string, v interface{})

func (*Server) RegisterLoginRoute

func (s *Server) RegisterLoginRoute(authBackend shttp.AuthenticationBackend)

func (*Server) ServeIndex

func (s *Server) ServeIndex(w http.ResponseWriter, r *auth.AuthenticatedRequest)

ServeIndex servers the index page

Source Files

  • server.go

Jump to

Keyboard shortcuts

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