server

package
v0.0.0-...-4c86397 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 4 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
	// contains filtered or unexported fields
}

ViewData contains data for the view

func NewViewData

func NewViewData(buildPath string) (ViewData, error)

NewViewData creates new data for the view

func (ViewData) Webpack

func (d ViewData) Webpack(file string) string

Webpack maps file name to path

Jump to

Keyboard shortcuts

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