Documentation
¶
Index ¶
- func GetProjectID(ctx context.Context) string
- func GetRequestID(ctx context.Context) string
- func GetUserID(ctx context.Context) string
- func WithProjectID(ctx context.Context, projectID string) context.Context
- func WithRequestID(ctx context.Context, requestID string) context.Context
- func WithUserID(ctx context.Context, userID string) context.Context
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectID ¶
func GetRequestID ¶
Types ¶
type ContextKey ¶
type ContextKey string
const ( ContextKeyRequestID ContextKey = "request-id" ContextKeyProjectID ContextKey = "project-id" ContextKeyAPIKey ContextKey = "api-key" ContextKeyAPISecret ContextKey = "api-secret" ContextKeyUserID ContextKey = "user-id" )
Click to show internal directories.
Click to hide internal directories.