portal

package
v0.0.0-...-f83813f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	deps.DependencySet,
	deps.MailDependencySet,

	service.DependencySet,
	adminauthz.DependencySet,
	clock.DependencySet,

	globaldb.DependencySet,

	template.DependencySet,
	endpoint.DependencySet,

	smtp.DependencySet,
	wire.Bind(new(smtp.MailSender), new(*mail.Sender)),

	auditdb.NewReadHandle,
	auditdb.NewWriteHandle,
	auditdb.DependencySet,
	analytic.DependencySet,
	configsource.DependencySet,

	usage.DependencySet,

	wire.Bind(new(service.AuthzAdder), new(*adminauthz.Adder)),
	wire.Bind(new(service.CollaboratorServiceEndpointsProvider), new(*endpoint.EndpointsProvider)),
	wire.Bind(new(service.CollaboratorServiceSMTPService), new(*smtp.Service)),
	wire.Bind(new(service.CollaboratorServiceAdminAPIService), new(*service.AdminAPIService)),
	wire.Bind(new(service.ResourceManager), new(*resource.Manager)),
	wire.Bind(new(service.AppPlanService), new(*portallibplan.Service)),
	wire.Bind(new(service.AppResourceManagerFactory), new(*appresource.ManagerFactory)),
	wire.Bind(new(service.SubscriptionConfigSourceStore), new(*configsource.Store)),
	wire.Bind(new(service.AppConfigSourceStore), new(*configsource.Store)),
	wire.Bind(new(service.SubscriptionPlanStore), new(*plan.Store)),
	wire.Bind(new(service.SubscriptionUsageStore), new(*usage.GlobalDBStore)),
	wire.Bind(new(service.UsageUsageStore), new(*usage.GlobalDBStore)),
	wire.Bind(new(service.OnboardServiceAdminAPIService), new(*service.AdminAPIService)),

	loader.DependencySet,
	wire.Bind(new(loader.UserLoaderAdminAPIService), new(*service.AdminAPIService)),
	wire.Bind(new(loader.AppLoaderAppService), new(*service.AppService)),
	wire.Bind(new(loader.DomainLoaderDomainService), new(*service.DomainService)),
	wire.Bind(new(loader.CollaboratorLoaderCollaboratorService), new(*service.CollaboratorService)),
	wire.Bind(new(loader.AuthzService), new(*service.AuthzService)),
	wire.Bind(new(loader.UserLoaderAppService), new(*service.AppService)),
	wire.Bind(new(loader.UserLoaderCollaboratorService), new(*service.CollaboratorService)),

	graphql.DependencySet,
	wire.Bind(new(graphql.UserLoader), new(*loader.UserLoader)),
	wire.Bind(new(graphql.AppLoader), new(*loader.AppLoader)),
	wire.Bind(new(graphql.DomainLoader), new(*loader.DomainLoader)),
	wire.Bind(new(graphql.CollaboratorLoader), new(*loader.CollaboratorLoader)),
	wire.Bind(new(graphql.CollaboratorInvitationLoader), new(*loader.CollaboratorInvitationLoader)),
	wire.Bind(new(graphql.AuthzService), new(*service.AuthzService)),
	wire.Bind(new(graphql.AppService), new(*service.AppService)),
	wire.Bind(new(graphql.DomainService), new(*service.DomainService)),
	wire.Bind(new(graphql.CollaboratorService), new(*service.CollaboratorService)),
	wire.Bind(new(graphql.SMTPService), new(*smtp.Service)),
	wire.Bind(new(graphql.AppResourceManagerFactory), new(*appresource.ManagerFactory)),
	wire.Bind(new(graphql.AnalyticChartService), new(*analytic.ChartService)),
	wire.Bind(new(graphql.TutorialService), new(*tutorial.Service)),
	wire.Bind(new(graphql.StripeService), new(*libstripe.Service)),
	wire.Bind(new(graphql.SubscriptionService), new(*service.SubscriptionService)),
	wire.Bind(new(graphql.UsageService), new(*service.UsageService)),
	wire.Bind(new(graphql.DenoService), new(*hook.DenoClientImpl)),
	wire.Bind(new(graphql.AuditService), new(*service.AuditService)),
	wire.Bind(new(graphql.OnboardService), new(*service.OnboardService)),

	transport.DependencySet,
	wire.Bind(new(transport.AdminAPIService), new(*service.AdminAPIService)),
	wire.Bind(new(transport.AdminAPIAuthzService), new(*service.AuthzService)),
	wire.Bind(new(transport.ResourceManager), new(*resource.Manager)),
	wire.Bind(new(transport.SystemConfigProvider), new(*service.SystemConfigProvider)),
	wire.Bind(new(transport.StripeService), new(*libstripe.Service)),
	wire.Bind(new(transport.SubscriptionService), new(*service.SubscriptionService)),

	portallibplan.DependencySet,
	wire.Bind(new(libstripe.PlanService), new(*portallibplan.Service)),
	wire.Bind(new(libstripe.EndpointsProvider), new(*endpoint.EndpointsProvider)),

	appresource.DependencySet,

	tutorial.DependencySet,

	libstripe.DependencySet,

	denoDependencySet,
)

Functions

func NewRouter

func NewRouter(p *deps.RootProvider) http.Handler

func PortalCSPMiddleware

func PortalCSPMiddleware(next http.Handler) http.Handler

func ProvideDenoClient

func ProvideDenoClient(endpoint config.DenoEndpoint, logger hook.Logger) *hook.DenoClientImpl

func ProvideEmptyAppID

func ProvideEmptyAppID() config.AppID

Types

This section is empty.

Jump to

Keyboard shortcuts

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