Documentation
¶
Index ¶
- func AddAppIDToCtx(ctx context.Context, value string) context.Context
- func AddServiceNameToCtx(ctx context.Context, value string) context.Context
- func AddUserIDToCtx(ctx context.Context, userID string) context.Context
- func GetAppID(ctx context.Context) string
- func GetServiceName(ctx context.Context) string
- func GetUserID(ctx context.Context) (string, error)
- func IsAdmin(ctx context.Context) bool
- func ToAdminCtx(ctx context.Context) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAppIDToCtx ¶
AddAppIDToCtx store authenticated user id to context
func AddServiceNameToCtx ¶
AddServiceNameToCtx store authenticated user id to context
func AddUserIDToCtx ¶
AddUserIDToCtx store authenticated user id to context
func GetServiceName ¶
GetServiceName gets authenticated service name from context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.