routes

package
v0.0.0-...-c1094a9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSessions

func AllSessions(w http.ResponseWriter, r *http.Request) (interface{}, interface{})

AllSessions 겟 세션

func EqualPassword

func EqualPassword(hashedPassword string, password string) bool

func GeneratePassword

func GeneratePassword(password string) string

func GetSession

func GetSession(w http.ResponseWriter, r *http.Request) *sessions.Session

GetSession 세션 추출

func Invalid

func Invalid(w http.ResponseWriter, r *http.Request, what int)

func LoggedIn

func LoggedIn(w http.ResponseWriter, r *http.Request, urlRedirect string)

LoggedIn 로그인 되었는지 판단

func NotLoggedIn

func NotLoggedIn(w http.ResponseWriter, r *http.Request)

NotLoggedIn 로그인이 안되었는지 확인

func Server

func Server()

func StringWithCharset

func StringWithCharset(length int, charset string) string

Types

type Data

type Data struct {
	Jto    string
	Jcc    string
	Jtitle string
	Jinput string
}

type Id2

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

type Mail2

type Mail2 struct {
	Mto      string
	Mfrom    string
	Mtitle   string
	Mcontent template.HTML
	Mdate    string
	Mid      uint32
	Mnum     string
}

type Todo

type Todo struct {
	Title  string
	Sender string
	To     string
	Date   string
	Done   bool
	Uid    uint32
}

type TodoPageData

type TodoPageData struct {
	Who   string
	Num   string
	Todos []Todo
}

Jump to

Keyboard shortcuts

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