Documentation ¶
Index ¶
- func BindRequestPayload(payloadInst interface{}) echo.MiddlewareFunc
- func RequireResourceIdInParam(paramName string) echo.MiddlewareFunc
- type MiddlewareManager
- func (m MiddlewareManager) Auth() echo.MiddlewareFunc
- func (m MiddlewareManager) CheckPolicies() echo.MiddlewareFunc
- func (m MiddlewareManager) CheckPoliciesWithOrg() echo.MiddlewareFunc
- func (m MiddlewareManager) CheckPoliciesWithProject() echo.MiddlewareFunc
- func (m MiddlewareManager) CheckPoliciesWithRequestPayload(payloadInst interface{}) echo.MiddlewareFunc
- func (m *MiddlewareManager) FireBaseAuth(next echo.HandlerFunc) echo.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindRequestPayload ¶
func BindRequestPayload(payloadInst interface{}) echo.MiddlewareFunc
func RequireResourceIdInParam ¶
func RequireResourceIdInParam(paramName string) echo.MiddlewareFunc
Types ¶
type MiddlewareManager ¶
type MiddlewareManager struct {
// contains filtered or unexported fields
}
MiddlewareManager ... This file contains common functions for auth
func NewMiddlewareManager ¶
func NewMiddlewareManager( appConf *config.AppConfig, userRepo coreRepo.UserRepository, userOrgRepo coreRepo.UserOrgRepository, orgRepo coreRepo.OrgRepository, projectRepo projectRepo.ProjectRepository, userUC usecases.UserUsecase, ) *MiddlewareManager
NewMiddlewareManager will create new an MiddlewareManager object
func (MiddlewareManager) Auth ¶
func (m MiddlewareManager) Auth() echo.MiddlewareFunc
func (MiddlewareManager) CheckPolicies ¶
func (m MiddlewareManager) CheckPolicies() echo.MiddlewareFunc
func (MiddlewareManager) CheckPoliciesWithOrg ¶
func (m MiddlewareManager) CheckPoliciesWithOrg() echo.MiddlewareFunc
func (MiddlewareManager) CheckPoliciesWithProject ¶
func (m MiddlewareManager) CheckPoliciesWithProject() echo.MiddlewareFunc
func (MiddlewareManager) CheckPoliciesWithRequestPayload ¶
func (m MiddlewareManager) CheckPoliciesWithRequestPayload(payloadInst interface{}) echo.MiddlewareFunc
NOTES: everywhen we call this function, we should pass a new instance of payloadInst to avoid race condition
func (*MiddlewareManager) FireBaseAuth ¶
func (m *MiddlewareManager) FireBaseAuth(next echo.HandlerFunc) echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.