server

package
v0.0.0-...-9e553cf Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(buildPath string) http.HandlerFunc

Handler returns http.Handler for server endpoint

Types

type User

type User struct {
	Email     string
	FirstName string
	LastName  string
}

User represents current user session

type ViewData

type ViewData struct {
	CurrentUser User
	Webpack     *webpack.Webpack
}

ViewData contains data for the view

func NewViewData

func NewViewData(buildPath string) (ViewData, error)

NewViewData creates new data for the view

Jump to

Keyboard shortcuts

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