Documentation
¶
Index ¶
- Variables
- func AddHTMLFilesystem(fs fs.FS)
- func RegisterDashboardRoutes(route func(*goji.Mux))
- func RenderPage(filename string) http.HandlerFunc
- func Run()
- func SendErrorToast(w http.ResponseWriter, message string)
- func SendSuccessToast(w http.ResponseWriter, message string)
- type CtxKey
- type FormResponse
- type GithubRelease
- type TmplContextData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RootMultiplexer *goji.Mux DashboardMultiplexer *goji.Mux StaticFiles fs.FS = frontend.StaticFiles URL string = "https://" + common.ConfigSummitHost TermsURL string = common.ConfigTermsURLOverride PrivacyURL string = common.ConfigPrivacyURLOverride )
View Source
var OauthConf *oauth2.Config
Functions ¶
func AddHTMLFilesystem ¶
func RegisterDashboardRoutes ¶
Called by plugins to add their routes
func RenderPage ¶
func RenderPage(filename string) http.HandlerFunc
RenderPage serves the given html page It attaches the template function array and the template data
func Run ¶
func Run()
Run starts the necessary processes to begin serving the web server it handles starting the authentication and the multiplexer
func SendErrorToast ¶
func SendErrorToast(w http.ResponseWriter, message string)
SendErrorToast is used to send a JSON response to the client to send the error toasts
func SendSuccessToast ¶
func SendSuccessToast(w http.ResponseWriter, message string)
SendSuccessToast is used to send a JSON response to the client to send the success toasts
Types ¶
type FormResponse ¶
type GithubRelease ¶
type TmplContextData ¶
type TmplContextData map[string]interface{}
Click to show internal directories.
Click to hide internal directories.