Documentation ¶
Index ¶
- Constants
- func MustGetMemberIDFromContext(ctx *gin.Context) uuid.UUID
- func MustGetMessageFromContext(ctx *gin.Context) q.PubSubMessage
- func NewMemberCtx(tenant string, membersClient MembersClient) *memberCtx
- func NewPubSubCtx(l Locker) *pubSubCtx
- func RequireEmailVerified() gin.HandlerFunc
- func RequireIfServiceAccount(userID string) gin.HandlerFunc
- func RequireSecondFactorPhone() gin.HandlerFunc
- type Locker
- type MembersClient
Constants ¶
View Source
const MemberIDCtxKey = "memberIDCtx"
View Source
const PubSubMessageCtxKey = "pubSubMessageCtx"
Variables ¶
This section is empty.
Functions ¶
func MustGetMemberIDFromContext ¶
MustGetAdminFromContext returns the member ID from the context.
func MustGetMessageFromContext ¶
func MustGetMessageFromContext(ctx *gin.Context) q.PubSubMessage
MustGetMessageFromContext returns the PubSub message from the context.
func NewMemberCtx ¶
func NewMemberCtx(tenant string, membersClient MembersClient) *memberCtx
func NewPubSubCtx ¶
func NewPubSubCtx(l Locker) *pubSubCtx
func RequireEmailVerified ¶ added in v0.27.0
func RequireEmailVerified() gin.HandlerFunc
func RequireIfServiceAccount ¶
func RequireIfServiceAccount(userID string) gin.HandlerFunc
RequireIfServiceAccount returns a middleware that checks if the request is coming from a service account and if the user ID is the same as the one provided.
func RequireSecondFactorPhone ¶ added in v0.27.0
func RequireSecondFactorPhone() gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.