Documentation
¶
Index ¶
- func BackupDatabase() error
- func CreateSession(userID int) (string, error)
- func Decrypt(cryptoText string) (string, error)
- func DeleteSession(sessionToken string) error
- func Encrypt(text string) (string, error)
- func GetUserIDBySession(sessionToken string) (int, error)
- func HandleOIDCRequest(w http.ResponseWriter, r *http.Request)
- func HandleSAMLRequest(w http.ResponseWriter, r *http.Request)
- func LoadTranslations() error
- func RestoreDatabase() error
- func SendEmailNotification(to, subject, body string) error
- func SendSlackNotification(webhookURL, message string) error
- func Translate(lang, key string) string
- func UpdateSSOSettings(settings *models.SSOSettings) error
- type SlackMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupDatabase ¶
func BackupDatabase() error
func CreateSession ¶
func DeleteSession ¶
func GetUserIDBySession ¶
func HandleOIDCRequest ¶
func HandleOIDCRequest(w http.ResponseWriter, r *http.Request)
func HandleSAMLRequest ¶
func HandleSAMLRequest(w http.ResponseWriter, r *http.Request)
func LoadTranslations ¶
func LoadTranslations() error
func RestoreDatabase ¶
func RestoreDatabase() error
func SendEmailNotification ¶
func SendSlackNotification ¶
func UpdateSSOSettings ¶
func UpdateSSOSettings(settings *models.SSOSettings) error
Types ¶
type SlackMessage ¶
type SlackMessage struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.