index

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 4 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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