Versions in this module Expand all Collapse all v2 v2.1.2 May 8, 2026 Changes in this version + const Version + type ICreator interface + NewHashMap func(id string) (IHashMap, error) + NewKeyValue func(id string) (IKeyValue, error) + NewList func(id string) (IList, error) + NewSet func(id string) (ISet, error) + type IHashMap interface + All func() ([]string, error) + Clear func() error + Del func(key string) error + DelKey func(owner, key string) error + Exists func(owner string) (bool, error) + Get func(owner, key string) (string, error) + Has func(owner, key string) (bool, error) + Keys func(owner string) ([]string, error) + Remove func() error + Set func(owner, key, value string) error + type IHashMap2 interface + All func() ([]string, error) + AllWhere func(key, value string) ([]string, error) + Clear func() error + Count func() (int64, error) + Del func(key string) error + DelKey func(owner, key string) error + Empty func() (bool, error) + Exists func(owner string) (bool, error) + Get func(owner, key string) (string, error) + GetMap func(owner string, keys []string) (map[string]string, error) + Has func(owner, key string) (bool, error) + Keys func(owner string) ([]string, error) + Remove func() error + Set func(owner, key, value string) error + SetLargeMap func(all map[string]map[string]string) error + SetMap func(owner string, m map[string]string) error + type IHost interface + Close func() + Ping func() error + type IKeyValue interface + Clear func() error + Del func(key string) error + Get func(key string) (string, error) + Inc func(key string) (string, error) + Remove func() error + Set func(key, value string) error + type IList interface + Add func(value string) error + All func() ([]string, error) + Clear func() error + Last func() (string, error) + LastN func(n int) ([]string, error) + LastUpToN func(n uint64) ([]string, error) + Remove func() error + type IPermissions interface + AddAdminPath func(prefix string) + AddPublicPath func(prefix string) + AddUserPath func(prefix string) + Clear func() + DenyFunction func() http.HandlerFunc + Rejected func(w http.ResponseWriter, req *http.Request) bool + ServeHTTP func(w http.ResponseWriter, req *http.Request, next http.HandlerFunc) + SetAdminPath func(pathPrefixes []string) + SetDenyFunction func(f http.HandlerFunc) + SetPublicPath func(pathPrefixes []string) + SetUserPath func(pathPrefixes []string) + UserState func() IUserState + type IRedisCreator interface + SelectDatabase func(dbindex int) + type IRedisHost interface + DatabaseIndex func() + Pool func() + type ISet interface + Add func(value string) error + All func() ([]string, error) + Clear func() error + Del func(value string) error + Has func(value string) (bool, error) + Remove func() error + type IUserState interface + AddUnconfirmed func(username, confirmationCode string) + AddUser func(username, password, email string) + AdminRights func(req *http.Request) bool + AllUnconfirmedUsernames func() ([]string, error) + AllUsernames func() ([]string, error) + AlreadyHasConfirmationCode func(confirmationCode string) bool + BooleanField func(username, fieldname string) bool + ClearCookie func(w http.ResponseWriter) + Confirm func(username string) + ConfirmUserByConfirmationCode func(confirmationcode string) error + ConfirmationCode func(username string) (string, error) + CookieSecret func() string + CookieTimeout func(username string) int64 + CorrectPassword func(username, password string) bool + Creator func() ICreator + Email func(username string) (string, error) + FindUserByConfirmationCode func(confirmationcode string) (string, error) + GenerateUniqueConfirmationCode func() (string, error) + HasUser func(username string) bool + HashPassword func(username, password string) string + Host func() IHost + IsAdmin func(username string) bool + IsConfirmed func(username string) bool + IsLoggedIn func(username string) bool + Login func(w http.ResponseWriter, username string) error + Logout func(username string) + MarkConfirmed func(username string) + PasswordAlgo func() string + PasswordHash func(username string) (string, error) + RemoveAdminStatus func(username string) + RemoveUnconfirmed func(username string) + RemoveUser func(username string) + SetAdminStatus func(username string) + SetBooleanField func(username, fieldname string, val bool) + SetCookieSecret func(cookieSecret string) + SetCookieTimeout func(cookieTime int64) + SetLoggedIn func(username string) + SetLoggedOut func(username string) + SetMinimumConfirmationCodeLength func(length int) + SetPassword func(username, password string) + SetPasswordAlgo func(algorithm string) error + SetUsernameCookie func(w http.ResponseWriter, username string) error + UserRights func(req *http.Request) bool + Username func(req *http.Request) string + UsernameCookie func(req *http.Request) (string, error) + Users func() IHashMap v2.1.1 May 8, 2026 Other modules containing this package github.com/xyproto/pinterface