Documentation ¶
Index ¶
- Variables
- func AuthAndRateLimiter(next http.Handler, w http.ResponseWriter, r *http.Request)
- func ExecuteQuery(query string, params ...any) error
- func GenerateToken(length int) (string, error)
- func HashPassword(password string) (string, error)
- func IPFormRestriction(ip string) (int, error)
- func IsIpPrivate(remoteIP string) error
- func IsSSL() (string, string, bool)
- func LinuxService(src string) error
- func SendEmailRequest(company, email, applicant string) error
- func SubmitApplication(w http.ResponseWriter, id string) error
- func UpdateSettings(b io.ReadCloser) error
- type SettingsStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Params = GetSettings() Users = newClientCache() )
Functions ¶
func AuthAndRateLimiter ¶
func ExecuteQuery ¶
func GenerateToken ¶
func HashPassword ¶
func IPFormRestriction ¶
func IsIpPrivate ¶
func LinuxService ¶
func SendEmailRequest ¶
func SubmitApplication ¶
func SubmitApplication(w http.ResponseWriter, id string) error
func UpdateSettings ¶
func UpdateSettings(b io.ReadCloser) error
Types ¶
type SettingsStruct ¶
type SettingsStruct struct { MU sync.RWMutex ServerPGSQL string `json:"serverPgsql"` PortPGSQL string `json:"portPgsql"` DatabasePGSQL string `json:"databasePgsql"` LoginPGSQL string `json:"loginPgsql"` PasswordPGSQL string `json:"passwordPgsql"` HTTPServer string `json:"httpServer"` HttpPort string `json:"httpPort"` UrlPort string `json:"urlPort"` HttpRedirectPrefix string `json:"httpRedirectPrefix"` FileDirectory string `json:"fileDirectory"` RequestBlockMin int64 `json:"requestBlockMin"` ConnLimit int `json:"connLimit"` UserTtlMin time.Duration `json:"userTtlMin"` EmailTech emailStruct `json:"emailTech"` Tables tableStruct `json:"tables"` }
func GetSettings ¶
func GetSettings() *SettingsStruct
Click to show internal directories.
Click to hide internal directories.