Documentation
¶
Index ¶
- func AdminRoutes(skylb skylab.Skylab)
- func AdviserRoutes(skylb skylab.Skylab)
- func AllRoutes(skylb skylab.Skylab)
- func ApplicantRoutes(skylb skylab.Skylab)
- func MentorRoutes(skylb skylab.Skylab)
- func NewSkylab(config skylab.Config) (skylab.Skylab, error)
- func NewTestSkylab(t *testing.T) skylab.Skylab
- func Routes(skylb skylab.Skylab)
- func ServeDirectory(mux *chi.Mux, directory http.FileSystem, url string)
- func SkylabRoutes(skylb skylab.Skylab)
- func StudentRoutes(skylb skylab.Skylab)
- type App
- func (ap App) Landing(w http.ResponseWriter, r *http.Request)
- func (ap App) LoginPage(w http.ResponseWriter, r *http.Request)
- func (ap App) PastYearShowcase(w http.ResponseWriter, r *http.Request)
- func (ap App) User(w http.ResponseWriter, r *http.Request)
- func (ap App) UserUpdate(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminRoutes ¶
func AdviserRoutes ¶
func ApplicantRoutes ¶
func MentorRoutes ¶
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 StudentRoutes ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (App) PastYearShowcase ¶
func (ap App) PastYearShowcase(w http.ResponseWriter, r *http.Request)
func (App) UserUpdate ¶
func (ap App) UserUpdate(w http.ResponseWriter, r *http.Request)
Source Files
¶
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 |
Click to show internal directories.
Click to hide internal directories.