Documentation ¶
Index ¶
- Variables
- func AddPanel(p AdminPanel)
- func Attach(url string)
- func AttachAdmin(url string)
- func CreateUser(username, password string) error
- func FmtTimestamp(ts uint64) string
- func GetPost(route string, handler interface{})
- func PageNumber(page string) int
- func PrettyPrint(i interface{}) string
- func RequireAuthentication(ctx *web.Context) bool
- func Slugify(text string) string
- func ValidateUser(username, password string) bool
- type AdminPanel
- type Link
- type M
- type Paginator
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var CookieStore = sessions.NewCookieStore([]byte(conf.Config.SessionSecret))
View Source
var Panels = []AdminPanel{}
Functions ¶
func AddPanel ¶
func AddPanel(p AdminPanel)
func AttachAdmin ¶
func AttachAdmin(url string)
func CreateUser ¶
func PrettyPrint ¶
func PrettyPrint(i interface{}) string
Attempt to PrettyPrint some things. Returns a string.
func RequireAuthentication ¶
func Slugify ¶
Slugify some text. Do not strip words as django does, but do collapse spaces and use dashes in favor of all other non-alphanum characters.
func ValidateUser ¶
Types ¶
type AdminPanel ¶
type AdminPanel interface {
Render() string
}
type Paginator ¶
type Paginator struct { Page int PerPage int Skip int Limit int Begin int End int Link string WindowSize int HasPrev bool HasNext bool NumPages int Inter string }
func NewPaginator ¶
type User ¶
func (*User) Collection ¶
Click to show internal directories.
Click to hide internal directories.