Documentation
¶
Index ¶
- Variables
- func AddAuthZone(path string)
- func BytesToString(b []byte) string
- func Connect(host string, dbname string)
- func Contains(arr []string, lookup string) bool
- func DebugTemplate(w http.ResponseWriter, r *http.Request, tmpl string)
- func DebugTemplatePath(tmpl string, intrf interface{})
- func FileServer() http.Handler
- func GetLine(fname string, match string) int
- func Handler(w http.ResponseWriter, r *http.Request)
- func Join(args ...interface{}) (bool, error)
- func Login(u string, pw string, ses *sessions.Session) (bool, error)
- func LoginLDAP(u string, pw string, ses *sessions.Session) (bool, error)
- func Logout(ses *sessions.Session) (bool, error)
- func MakeHandler(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc
- func Netadd(x, v float64) float64
- func Netdivided(x, v float64) float64
- func Netimportcss(s string) string
- func Netimportjs(s string) string
- func Netmultiply(x, v float64) float64
- func NetsessionDelete(s *sessions.Session) string
- func NetsessionGet(key string, s *sessions.Session) string
- func NetsessionGetInt(key string, s *sessions.Session) interface{}
- func NetsessionKey(key string, s *sessions.Session) bool
- func NetsessionRemove(key string, s *sessions.Session) string
- func NetsessionSet(key string, value string, s *sessions.Session) string
- func NetsessionSetInt(key string, value interface{}, s *sessions.Session) string
- func Netsubs(x, v float64) float64
- func ReadyTemplate(body []byte) string
- func RemoveAuthZone(path string)
- func SetDb(db db.DB)
- func SetField(obj interface{}, name string, value interface{}) error
- func SetUnAuthPage(path string)
- func UrlAtZ(url, base string) (isURL bool)
- func UseLDAP(Ldap *ldap.LDAPClient)
- type NoStruct
- type Page
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DB db.DB DbName, UPage string LDAPClient *ldap.LDAPClient Zones []string )
View Source
var LocalLDAP *ldap.LDAPClient
Functions ¶
func AddAuthZone ¶
func AddAuthZone(path string)
func BytesToString ¶
func DebugTemplate ¶
func DebugTemplate(w http.ResponseWriter, r *http.Request, tmpl string)
func DebugTemplatePath ¶
func DebugTemplatePath(tmpl string, intrf interface{})
func FileServer ¶
func MakeHandler ¶
func MakeHandler(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc
Access you .gxml's end tags with this http.HandlerFunc. Use MakeHandler(http.HandlerFunc) to serve your web directory from memory.
func Netdivided ¶
func Netimportcss ¶
func Netimportjs ¶
func Netmultiply ¶
func NetsessionDelete ¶
func NetsessionGetInt ¶
func NetsessionSetInt ¶
func ReadyTemplate ¶
func RemoveAuthZone ¶
func RemoveAuthZone(path string)
func SetUnAuthPage ¶
func SetUnAuthPage(path string)
Types ¶
type User ¶
type User struct { Id bson.ObjectId `bson:"_id,omitempty"` Username string `valid:"unique,required"` Pw [32]byte Email string `valid:"email,unique,required"` Created time.Time //timestamp local format Scopes []string Groups []string Props db.O LDAP bool Attr map[string]string }
func (*User) RemoveZone ¶
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.