Documentation ¶
Index ¶
- func WithCurrentUser(ctx context.Context, currentUser CurrentUserContext) context.Context
- func WithUserFromHealthCheckReq(ctx context.Context, req *backend.CheckHealthRequest) context.Context
- func WithUserFromQueryReq(ctx context.Context, req *backend.QueryDataRequest) context.Context
- func WithUserFromResourceReq(ctx context.Context, req *backend.CallResourceRequest) context.Context
- type CurrentUserContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCurrentUser ¶
func WithCurrentUser(ctx context.Context, currentUser CurrentUserContext) context.Context
func WithUserFromQueryReq ¶
func WithUserFromResourceReq ¶
Types ¶
type CurrentUserContext ¶
type CurrentUserContext struct { User *backend.User IdToken string AccessToken string GrafanaIdToken string }
func GetCurrentUser ¶
func GetCurrentUser(ctx context.Context) (CurrentUserContext, bool)
Click to show internal directories.
Click to hide internal directories.