services

package
v0.0.0-...-33e6665 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupDatabase

func BackupDatabase() error

func CreateSession

func CreateSession(userID int) (string, error)

func Decrypt

func Decrypt(cryptoText string) (string, error)

func DeleteSession

func DeleteSession(sessionToken string) error

func Encrypt

func Encrypt(text string) (string, error)

func GetUserIDBySession

func GetUserIDBySession(sessionToken string) (int, error)

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 SendEmailNotification(to, subject, body string) error

func SendSlackNotification

func SendSlackNotification(webhookURL, message string) error

func Translate

func Translate(lang, key string) string

func UpdateSSOSettings

func UpdateSSOSettings(settings *models.SSOSettings) error

Types

type SlackMessage

type SlackMessage struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL