routes

package
v0.0.0-...-444b592 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler(cfg *config.StubRouterConfig, sessionManager *scs.SessionManager) http.HandlerFunc

func LogoutHandler

func LogoutHandler(sessionManager *scs.SessionManager) http.HandlerFunc

func RootHandler

func RootHandler(cfg *config.StubRouterConfig, sessionManager *scs.SessionManager) http.HandlerFunc

func RouteHandler

func RouteHandler(cfg *config.StubRouterConfig, stubStore stubs.StubStorage, sessionManager *scs.SessionManager) http.HandlerFunc

func Routes

func Routes(cfg *config.StubRouterConfig, sessionManager *scs.SessionManager, stubStore stubs.StubStorage) *goji.Mux

func StaticHandler

func StaticHandler() http.HandlerFunc

func StubApiHandler

func StubApiHandler(stubStore stubs.StubStorage) http.HandlerFunc

Types

type ErrorViewData

type ErrorViewData struct {
	Code    int
	Message string
}

type IndexViewData

type IndexViewData struct {
	config.StubRouterConfig
	Username string
}

type IndexesFileSystem

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

func (IndexesFileSystem) Open

func (nfs IndexesFileSystem) Open(path string) (http.File, error)

type UserSessionData

type UserSessionData struct {
	Username string
	Jwt      string
}

Jump to

Keyboard shortcuts

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