Documentation
¶
Index ¶
- Constants
- func CreateDynamicWriteTable(dbConn *db.Database, tableName string) error
- func CreateHash(password string) string
- func GetClientIp(r *http.Request) string
- func GetCurrentLoginCount(request util.Request) [2]int
- func GetMenus() []*model.Menu
- func GetRecentPoll() *model.Poll
- func InsertPoint(dbConn *db.Database, request util.Request, mbId string, point int, ...)
- func IsFileExist(filePath string) bool
- func IsInterceptIP(request util.Request, clientIP string) bool
- func IsPossibleIP(request util.Request, clientIP string) bool
- func IsSuperAdmin(request util.Request, mbId string) bool
- func RecordVisit(r *http.Request) error
- func SendHTML(w http.ResponseWriter, html string)
- func SessionMemberKey(r *http.Request, member *model.Member) string
- type ErrorResponse
Constants ¶
View Source
const ( Pbkdf2CompatHashAlgorithm = "SHA256" Pbkdf2CompatIterations = 12000 Pbkdf2CompatSaltBytes = 24 Pbkdf2CompatHashBytes = 24 )
Variables ¶
This section is empty.
Functions ¶
func CreateDynamicWriteTable ¶
func CreateHash ¶
func GetClientIp ¶
func GetCurrentLoginCount ¶
func GetRecentPoll ¶
func InsertPoint ¶
func IsFileExist ¶
func RecordVisit ¶
func SendHTML ¶
func SendHTML(w http.ResponseWriter, html string)
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
func NewErrorResponse ¶
func NewErrorResponse(err error) ErrorResponse
Click to show internal directories.
Click to hide internal directories.