app

package
v0.0.0-...-baf4ea5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminRoutes

func AdminRoutes(skylb skylab.Skylab)

func AdviserRoutes

func AdviserRoutes(skylb skylab.Skylab)

func AllRoutes

func AllRoutes(skylb skylab.Skylab)

func ApplicantRoutes

func ApplicantRoutes(skylb skylab.Skylab)

func MentorRoutes

func MentorRoutes(skylb skylab.Skylab)

func NewSkylab

func NewSkylab(config skylab.Config) (skylab.Skylab, error)

func NewTestSkylab

func NewTestSkylab(t *testing.T) skylab.Skylab

func Routes

func Routes(skylb skylab.Skylab)

func ServeDirectory

func ServeDirectory(mux *chi.Mux, directory http.FileSystem, url string)

Serve directory will serve a directory on a given url (for a *chi.Mux). You can convert a string path into a http.FileSystem by casting it to a http.Dir(). For example, this will serve a directory called 'assets' on a url '/my-assets':

ServeDirectory(mux, http.Dir("./assets"), "/my-assets")

Taken from https://github.com/go-chi/chi/issues/35#issuecomment-465747073

func SkylabRoutes

func SkylabRoutes(skylb skylab.Skylab)

func StudentRoutes

func StudentRoutes(skylb skylab.Skylab)

Types

type App

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

func (App) Landing

func (ap App) Landing(w http.ResponseWriter, r *http.Request)

func (App) LoginPage

func (ap App) LoginPage(w http.ResponseWriter, r *http.Request)

func (App) PastYearShowcase

func (ap App) PastYearShowcase(w http.ResponseWriter, r *http.Request)

func (App) User

func (ap App) User(w http.ResponseWriter, r *http.Request)

func (App) UserUpdate

func (ap App) UserUpdate(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
Package admins implements the admin-facing pages on Skylab
Package admins implements the admin-facing pages on Skylab
Package advisers implements the adviser-facing pages on Skylab
Package advisers implements the adviser-facing pages on Skylab
Package applicants implements the applicant-facing pages on Skylab
Package applicants implements the applicant-facing pages on Skylab
Package mentors implements the mentor-facing pages on Skylab
Package mentors implements the mentor-facing pages on Skylab
Package app implements the Skylab website for Orbital
Package app implements the Skylab website for Orbital
Package students implements the student-facing pages on Skylab
Package students implements the student-facing pages on Skylab

Jump to

Keyboard shortcuts

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