Documentation
¶
Index ¶
- Constants
- type Services
- func (s *Services) APIKeyService() *apikey.Service
- func (s *Services) AppContextMiddleware(next router.PageHandler) router.PageHandler
- func (s *Services) AppService() app.Service
- func (s *Services) AuditService() *audit.Service
- func (s *Services) AuthMiddleware(next router.PageHandler) router.PageHandler
- func (s *Services) AuthService() auth.ServiceInterface
- func (s *Services) AuthlessMiddleware(next router.PageHandler) router.PageHandler
- func (s *Services) CheckExistingPageSession(c *router.PageContext) (*user.User, *session.Session, error)
- func (s *Services) EnvironmentService() environment.EnvironmentService
- func (s *Services) FormsService() *forms.Service
- func (s *Services) GenerateCSRFToken() string
- func (s *Services) IsFirstUser(ctx context.Context) (bool, error)
- func (s *Services) OrganizationService() organization.CompositeOrganizationService
- func (s *Services) RBACService() rbac.ServiceInterface
- func (s *Services) SessionService() session.ServiceInterface
- func (s *Services) UserService() user.ServiceInterface
- func (s *Services) WebhookService() *webhook.Service
Constants ¶
View Source
const ( UserKey = "user" SessionKey = "session" AuthenticatedKey = "authenticated" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
func NewServices ¶
func NewServices( basePath string, sessionSvc session.ServiceInterface, userSvc user.ServiceInterface, authSvc auth.ServiceInterface, appSvc app.Service, orgSvc organization.CompositeOrganizationService, rbacSvc rbac.ServiceInterface, apikeySvc *apikey.Service, formsSvc *forms.Service, auditSvc *audit.Service, webhookSvc *webhook.Service, envSvc environment.EnvironmentService, ) *Services
func (*Services) APIKeyService ¶
func (*Services) AppContextMiddleware ¶
func (s *Services) AppContextMiddleware(next router.PageHandler) router.PageHandler
AppContextMiddleware injects app context into ForgeUI page context AND enriches the Go context with app ID and environment ID for service layer access.
func (*Services) AppService ¶
func (*Services) AuditService ¶
func (*Services) AuthMiddleware ¶
func (s *Services) AuthMiddleware(next router.PageHandler) router.PageHandler
func (*Services) AuthService ¶
func (s *Services) AuthService() auth.ServiceInterface
func (*Services) AuthlessMiddleware ¶
func (s *Services) AuthlessMiddleware(next router.PageHandler) router.PageHandler
func (*Services) CheckExistingPageSession ¶
func (*Services) EnvironmentService ¶
func (s *Services) EnvironmentService() environment.EnvironmentService
func (*Services) FormsService ¶
func (*Services) GenerateCSRFToken ¶
GenerateCSRFToken generateCSRFToken generates a simple CSRF token.
func (*Services) IsFirstUser ¶
isFirstUser checks if there are any users in the system IsFirstUser is a global check that bypasses organization context for the first system user.
func (*Services) OrganizationService ¶
func (s *Services) OrganizationService() organization.CompositeOrganizationService
func (*Services) RBACService ¶
func (s *Services) RBACService() rbac.ServiceInterface
func (*Services) SessionService ¶
func (s *Services) SessionService() session.ServiceInterface
func (*Services) UserService ¶
func (s *Services) UserService() user.ServiceInterface
func (*Services) WebhookService ¶
Click to show internal directories.
Click to hide internal directories.