initializers

package
v0.0.0-...-192c46a Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DialerMail            *gomail.Dialer
	InviteBodyTemplate    *template.Template
	BaseCallbackInviteURL string
)
View Source
var DB *gorm.DB
View Source
var ESClient *opensearch.Client

ESClient *elasticsearch.Client

View Source
var Enforcer *casbin.Enforcer
View Source
var OauthConfig *oauth2.Config
View Source
var OauthConfigAdmin *oauth2.Config

Functions

func ConnectToCasbin

func ConnectToCasbin()

func ConnectToDB

func ConnectToDB()

func ConnectToElasticSearch

func ConnectToElasticSearch() *opensearch.Client

func ConnectToRedis

func ConnectToRedis() *redis.Client

func ConnectToS3

func ConnectToS3()

func InitAdminOAuth

func InitAdminOAuth()

func InitEnums

func InitEnums(db *gorm.DB) error

func InitOAuth

func InitOAuth()

func LoadEnvVar

func LoadEnvVar()

func SetupGoth

func SetupGoth()

func SetupInviteMail

func SetupInviteMail()

func SetupMail

func SetupMail()

func SyncDB

func SyncDB()

Types

This section is empty.

Jump to

Keyboard shortcuts

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