Documentation ¶
Overview ¶
Package index implements function for index page render.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(rw http.ResponseWriter, req *http.Request)
Render renders index page. If user not authenticated, will be rendered form with token field and submit button. If user is authenticated, will be rendered user avatar, link to profile, button for pop-up window with scopes for provided token and logout button. If occurs any error (besides cookie not found) to client will be returned "Internal server error".
Types ¶
type IndexState ¶
type IndexState struct {
Auth bool
}
Click to show internal directories.
Click to hide internal directories.