Documentation ¶
Index ¶
- Variables
- func ChangeSettings(login string, r *http.Request) error
- func CheckPassword(password string) bool
- func GenerateAndSetToken(w http.ResponseWriter, login string)
- func GetLoginFromToken(r *http.Request) (string, error)
- func JSONResp(w http.ResponseWriter, message string, status int, token ...string)
- func ParseTemplateDir(dir string, subdir string) error
- func RefreshToken(w http.ResponseWriter, r *http.Request) error
- func ValidateToken(r *http.Request) bool
- type Claims
- type Controller
- func (c *Controller) Calculator(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Favicon(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Logging(hdlr http.Handler) http.Handler
- func (c *Controller) Login(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Login_api(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Profile(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Register(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Register_api(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Settings(w http.ResponseWriter, r *http.Request)
- func (c *Controller) Shutdown(ctx context.Context, server *http.Server) context.Context
- func (c *Controller) Tracing(hdlr http.Handler) http.Handler
- type Middleware
- type Middlewares
Constants ¶
This section is empty.
Variables ¶
View Source
var Templates = make(map[string]*template.Template)
Functions ¶
func CheckPassword ¶
func GenerateAndSetToken ¶
func GenerateAndSetToken(w http.ResponseWriter, login string)
func ParseTemplateDir ¶
func RefreshToken ¶
func RefreshToken(w http.ResponseWriter, r *http.Request) error
func ValidateToken ¶
Types ¶
type Controller ¶
func (*Controller) Calculator ¶
func (c *Controller) Calculator(w http.ResponseWriter, r *http.Request)
func (*Controller) Favicon ¶
func (c *Controller) Favicon(w http.ResponseWriter, r *http.Request)
func (*Controller) Login ¶
func (c *Controller) Login(w http.ResponseWriter, r *http.Request)
func (*Controller) Login_api ¶
func (c *Controller) Login_api(w http.ResponseWriter, r *http.Request)
func (*Controller) Profile ¶
func (c *Controller) Profile(w http.ResponseWriter, r *http.Request)
func (*Controller) Register ¶
func (c *Controller) Register(w http.ResponseWriter, r *http.Request)
func (*Controller) Register_api ¶
func (c *Controller) Register_api(w http.ResponseWriter, r *http.Request)
func (*Controller) Settings ¶
func (c *Controller) Settings(w http.ResponseWriter, r *http.Request)
type Middlewares ¶
type Middlewares []Middleware
Click to show internal directories.
Click to hide internal directories.