Documentation ¶
Index ¶
- func GetAccountIDFromContext(ctx context.Context) string
- func GetExecIDFromContext(ctx context.Context) string
- func GetProjectIDFromContext(ctx context.Context) string
- func GetUserIDFromContext(ctx context.Context) string
- func SetAccountIDInContext(ctx context.Context, aid string) context.Context
- func SetExecIDInContext(ctx context.Context, execID string) context.Context
- func SetProjectIDInContext(ctx context.Context, projectID string) context.Context
- func SetUserIDInContext(ctx context.Context, aid string) context.Context
- func WithAccountCtx(next http.Handler) http.Handler
- func WithExecCtx(next http.Handler) http.Handler
- func WithProjectCtx(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountIDFromContext ¶
func GetExecIDFromContext ¶
func GetProjectIDFromContext ¶
func GetUserIDFromContext ¶
func SetAccountIDInContext ¶
func SetExecIDInContext ¶
func SetProjectIDInContext ¶
func WithAccountCtx ¶
WithAccountCtx is a helper middleware that fakes an authenticated account. It should only be user for development or when self-hosting.
func WithExecCtx ¶
WithExecCtx is a helper middleware that parsed the session id from the url and verifies it exists in the db.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.