c

package
v0.0.0-...-c896b06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(log *log.Logger, db dber) *Controller

func (*Controller) Error

func (c *Controller) Error(w http.ResponseWriter, r *http.Request, code int, str string)

func (*Controller) GetCookieUser

func (c *Controller) GetCookieUser(w http.ResponseWriter, r *http.Request) (user.User, error)

func (*Controller) GetCookieUser2

func (c *Controller) GetCookieUser2(w http.ResponseWriter, r *http.Request) (user.User, error)

TODO: You know why this is bad, change it.

func (*Controller) HTML

func (c *Controller) HTML(w http.ResponseWriter, r *http.Request, tmpl *template.Template, data interface{})

TODO: You know why this is bad, change it.

func (*Controller) JSON

func (c *Controller) JSON(w http.ResponseWriter, r *http.Request, data interface{})

TODO: You know why this is bad, change it.

func (*Controller) SetCookieUser

func (c *Controller) SetCookieUser(w http.ResponseWriter, r *http.Request, user user.User)

func (*Controller) String

func (c *Controller) String(w http.ResponseWriter, r *http.Request, str string)

type KeyCookie

type KeyCookie = string
var KeyUserLogin KeyCookie = "KeyUserLogin"

Directories

Path Synopsis
Package content is a generated GoMock package.
Package content is a generated GoMock package.

Jump to

Keyboard shortcuts

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