Documentation
¶
Index ¶
Constants ¶
View Source
const CSRF_COOKIE_NAME = "kc4d018d7e07"
Variables ¶
View Source
var ErrNotFound = errors.New("Not found")
View Source
var TEST_MODE = false
Functions ¶
func SendTestEmail ¶ added in v0.0.2
Types ¶
type Conf ¶
type Conf struct {
Url string `toml:"url"`
Port int `toml:"port"`
DB string `toml:"db"`
DBMaxConns int
DBType string `toml:"db_type"`
MailSMTP *ConfMailSMTP `toml:"mail_smtp"`
MailSparkpost *ConfMailSparkpost `toml:"mail_sparkpost"`
MailFrom string `toml:"mail_from"`
SessionRedis *ConfSessionRedis `toml:"session_redis"`
Csrf ConfCsrf `toml:"csrf"`
}
type ConfMailSMTP ¶
type ConfMailSparkpost ¶
type ConfSessionRedis ¶
type StaticHandler ¶
func NewStaticHandler ¶
func NewStaticHandler() *StaticHandler
func (*StaticHandler) ServeHTTP ¶
func (s *StaticHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.