Documentation ¶
Index ¶
- func GetUser(ctx context.Context) (*contracts.UserInfo, error)
- func GetUserPermissions(email string) []*auth.Permission
- func HasPermissionFor[T ~int | ~int64](user *contracts.UserInfo, permission rbac.Permission, id T) bool
- func MustGetUser(ctx context.Context) *contracts.UserInfo
- func SetUser(ctx context.Context, info *contracts.UserInfo) context.Context
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- type Auth
- type CtxTokenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserPermissions ¶ added in v0.0.28
func GetUserPermissions(email string) []*auth.Permission
func HasPermissionFor ¶ added in v0.0.28
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
type CtxTokenInfo ¶
type CtxTokenInfo struct{}
Click to show internal directories.
Click to hide internal directories.