consts

package
v0.71.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// const keys used to pass values from gRPC methods to http mux interface
	SessionIDGatewayKey     = "gateway-session-id"
	SessionDeleteGatewayKey = "gateway-session-delete"
	UserTokenGatewayKey     = "gateway-user-token"
	LocationGatewayKey      = "gateway-location"
	UserSecretGatewayKey    = "gateway-user-secret"

	// UserTokenRequestKey is returned from the application to client containing user details in
	// response headers
	UserTokenRequestKey = "x-user-token"

	// LocationRequestKey is used to set location response header for redirecting browser
	LocationRequestKey = "location"

	// ProjectRequestKey is used to set current project in jwt token
	ProjectRequestKey = "x-project"

	// SessionRequestKey is the key to store session value in browser
	SessionRequestKey = "sid"

	// StripeTestClockRequestKey is used to store stripe test clock id which will
	// be used to simulate a customer & subscription
	StripeTestClockRequestKey = "x-stripe-test-clock"

	// StripeWebhookSignature is used to store stripe webhook signature
	StripeWebhookSignature = "stripe-signature"

	// RequestIDHeader is the key to store request id from http headers
	RequestIDHeader = "x-request-id"
)

Variables

View Source
var (
	// AuthenticatedPrincipalContextKey is context key that contains the principal object
	AuthenticatedPrincipalContextKey = contextKey{/* contains filtered or unexported fields */}

	AuditActorContextKey    = contextKey{/* contains filtered or unexported fields */}
	AuditMetadataContextKey = contextKey{/* contains filtered or unexported fields */}
	AuditServiceContextKey  = contextKey{/* contains filtered or unexported fields */}

	// BillingStripeTestClockContextKey is context key that contains the stripe test clock id
	BillingStripeTestClockContextKey = contextKey{/* contains filtered or unexported fields */}

	// BillingStripeWebhookSignatureContextKey is context key that contains the stripe webhook signature
	BillingStripeWebhookSignatureContextKey = contextKey{/* contains filtered or unexported fields */}

	// RequestIDContextKey is context key that contains the request id
	RequestIDContextKey = contextKey{/* contains filtered or unexported fields */}
)

Functions

func GetRequestIDFromCtx added in v0.49.0

func GetRequestIDFromCtx(ctx context.Context) (string, bool)

func WithRequestIDInCtx added in v0.49.0

func WithRequestIDInCtx(ctx context.Context, id string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL