Documentation ¶
Index ¶
- Variables
- func ProvideAuditDatabaseCredentials(cfg *config.EnvironmentConfig) *config.AuditDatabaseCredentials
- func ProvideConfigSource(ctrl *configsource.Controller) *configsource.ConfigSource
- func ProvideHTTPHost(r *http.Request, trustProxy config.TrustProxy) httputil.HTTPHost
- func ProvideHTTPProto(r *http.Request, trustProxy config.TrustProxy) httputil.HTTPProto
- func ProvideRemoteIP(r *http.Request, trustProxy config.TrustProxy) httputil.RemoteIP
- func ProvideSMTPServerCredentials(c *portalconfig.SMTPConfig) *config.SMTPServerCredentials
- func ProvideUserAgentString(r *http.Request) httputil.UserAgentString
- type AppBaseResources
- type RequestProvider
- type RootProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.FieldsOf(new(*RootProvider), "EnvironmentConfig", "ConfigSourceConfig", "AuthgearConfig", "AdminAPIConfig", "AppConfig", "SMTPConfig", "MailConfig", "KubernetesConfig", "DomainImplementation", "SearchConfig", "AuditLogConfig", "AnalyticConfig", "StripeConfig", "OsanoConfig", "GoogleTagManagerConfig", "PortalFrontendSentryConfig", "SentryHub", "LoggerFactory", "Database", "RedisPool", "GlobalRedisHandle", "ConfigSourceController", "Resources", "FilesystemCache", ), wire.FieldsOf(new(*config.EnvironmentConfig), "TrustProxy", "DevMode", "SentryDSN", "GlobalDatabase", "DatabaseConfig", "DenoEndpoint", "AppHostSuffixes", "UIImplementation", "UISettingsImplementation", "SAML", ), wire.FieldsOf(new(*RequestProvider), "RootProvider", "Request", ), ProvideRemoteIP, ProvideUserAgentString, ProvideHTTPHost, ProvideHTTPProto, ProvideConfigSource, ProvideAppBaseResources, ProvideAuditDatabaseCredentials, wire.Bind(new(template.ResourceManager), new(*resource.Manager)), wire.Value(template.DefaultLanguageTag(intl.BuiltinBaseLanguage)), wire.Value(template.SupportedLanguageTags([]string{intl.BuiltinBaseLanguage})), )
View Source
var MailDependencySet = wire.NewSet( ProvideSMTPServerCredentials, mail.DependencySet, )
Functions ¶
func ProvideAuditDatabaseCredentials ¶
func ProvideAuditDatabaseCredentials(cfg *config.EnvironmentConfig) *config.AuditDatabaseCredentials
func ProvideConfigSource ¶
func ProvideConfigSource(ctrl *configsource.Controller) *configsource.ConfigSource
func ProvideHTTPHost ¶
func ProvideHTTPProto ¶
func ProvideRemoteIP ¶
func ProvideSMTPServerCredentials ¶
func ProvideSMTPServerCredentials(c *portalconfig.SMTPConfig) *config.SMTPServerCredentials
func ProvideUserAgentString ¶
func ProvideUserAgentString(r *http.Request) httputil.UserAgentString
Types ¶
type AppBaseResources ¶
func ProvideAppBaseResources ¶
func ProvideAppBaseResources(root *RootProvider) AppBaseResources
type RequestProvider ¶
type RequestProvider struct { RootProvider *RootProvider Request *http.Request }
type RootProvider ¶
type RootProvider struct { EnvironmentConfig *config.EnvironmentConfig ConfigSourceConfig *configsource.Config AuthgearConfig *portalconfig.AuthgearConfig AdminAPIConfig *portalconfig.AdminAPIConfig AppConfig *portalconfig.AppConfig SMTPConfig *portalconfig.SMTPConfig MailConfig *portalconfig.MailConfig KubernetesConfig *portalconfig.KubernetesConfig DomainImplementation portalconfig.DomainImplementationType SearchConfig *portalconfig.SearchConfig AuditLogConfig *portalconfig.AuditLogConfig AnalyticConfig *config.AnalyticConfig StripeConfig *portalconfig.StripeConfig OsanoConfig *portalconfig.OsanoConfig GoogleTagManagerConfig *portalconfig.GoogleTagManagerConfig PortalFrontendSentryConfig *portalconfig.PortalFrontendSentryConfig LoggerFactory *log.Factory SentryHub *getsentry.Hub Database *db.Pool RedisPool *redis.Pool GlobalRedisHandle *globalredis.Handle ConfigSourceController *configsource.Controller Resources *resource.Manager AppBaseResources *resource.Manager FilesystemCache *httputil.FilesystemCache }
func NewRootProvider ¶
func NewRootProvider( cfg *config.EnvironmentConfig, builtinResourceDirectory string, customResourceDirectory string, appBuiltinResourceDirectory string, appCustomResourceDirectory string, configSourceConfig *configsource.Config, authgearConfig *portalconfig.AuthgearConfig, adminAPIConfig *portalconfig.AdminAPIConfig, appConfig *portalconfig.AppConfig, smtpConfig *portalconfig.SMTPConfig, mailConfig *portalconfig.MailConfig, kubernetesConfig *portalconfig.KubernetesConfig, domainImplementation portalconfig.DomainImplementationType, searchConfig *portalconfig.SearchConfig, auditLogConfig *portalconfig.AuditLogConfig, analyticConfig *config.AnalyticConfig, stripeConfig *portalconfig.StripeConfig, osanoConfig *portalconfig.OsanoConfig, googleTagManagerConfig *portalconfig.GoogleTagManagerConfig, portalFrontendSentryConfig *portalconfig.PortalFrontendSentryConfig, ) (*RootProvider, error)
func (*RootProvider) Handler ¶
func (p *RootProvider) Handler(f func(*RequestProvider) http.Handler) http.Handler
func (*RootProvider) Middleware ¶
func (p *RootProvider) Middleware(f func(*RequestProvider) httproute.Middleware) httproute.Middleware
Click to show internal directories.
Click to hide internal directories.