Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
27
cloud/maplepress-backend/config/constants/constants.go
Normal file
27
cloud/maplepress-backend/config/constants/constants.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package constants
|
||||
|
||||
const (
|
||||
// Application constants
|
||||
AppName = "MaplePress Backend"
|
||||
|
||||
// HTTP constants
|
||||
HeaderContentType = "Content-Type"
|
||||
HeaderAuthorization = "Authorization"
|
||||
MIMEApplicationJSON = "application/json"
|
||||
|
||||
// Context keys
|
||||
ContextKeyTenantID = "tenant_id"
|
||||
ContextKeyUserID = "user_id"
|
||||
ContextKeyJWTClaims = "jwt_claims"
|
||||
|
||||
// Site context keys (API key authentication)
|
||||
SiteIsAuthenticated = "site_is_authenticated"
|
||||
SiteID = "site_id"
|
||||
SiteTenantID = "site_tenant_id"
|
||||
SiteDomain = "site_domain"
|
||||
SitePlanTier = "site_plan_tier"
|
||||
|
||||
// Default values
|
||||
DefaultPageSize = 20
|
||||
MaxPageSize = 100
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue