Documentation
¶
Index ¶
- func GetProject(ctx context.Context) models.Slug
- func GetRequestID(ctx context.Context) string
- func GetSession(ctx context.Context) models.Slug
- func GetWorkspace(ctx context.Context) models.WorkspaceID
- func WithProject(ctx context.Context, slug models.Slug) context.Context
- func WithRequestID(ctx context.Context, id string) context.Context
- func WithSession(ctx context.Context, slug models.Slug) context.Context
- func WithWorkspace(ctx context.Context, id models.WorkspaceID) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProject ¶
GetProject returns the project slug from the context, or "" if absent.
func GetRequestID ¶
GetRequestID returns the request ID from the context, or "" if absent.
func GetSession ¶
GetSession returns the session slug from the context, or "" if absent.
func GetWorkspace ¶
func GetWorkspace(ctx context.Context) models.WorkspaceID
GetWorkspace returns the workspace ID from the context, or "" if absent.
func WithProject ¶
WithProject returns a context carrying the given project slug.
func WithRequestID ¶
WithRequestID returns a context carrying the given request ID.
func WithSession ¶
WithSession returns a context carrying the given session slug.
func WithWorkspace ¶
WithWorkspace returns a context carrying the given workspace ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.