consts

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 0 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"
)

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 */}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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