GetWorkspaceIDFromContext returns the workspace ID from the request context.
(ctx context.Context)
| 53 | |
| 54 | // GetWorkspaceIDFromContext returns the workspace ID from the request context. |
| 55 | func GetWorkspaceIDFromContext(ctx context.Context) string { |
| 56 | if v, ok := ctx.Value(WorkspaceIDContextKey).(string); ok { |
| 57 | return v |
| 58 | } |
| 59 | return "" |
| 60 | } |
| 61 | |
| 62 | type AuthMethod int |
| 63 |
no outgoing calls