globals

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalhostPort = "8080"

	// environment
	DevelopmentEnvironment = "development"
	StagingEnvironment     = "staging"
	ProductionEnvironment  = "production"

	// client URLs
	MainSiteOrigin            = "https://www.twreporter.org"
	MainSiteDevOrigin         = "http://localhost:3000"
	MainSiteStagingOrigin     = "https://staging.twreporter.org"
	SupportSiteOrigin         = "https://support.twreporter.org"
	SupportSiteDevOrigin      = "http://localhost:3000"
	SupportSiteStagingOrigin  = "https://staging-support.twreporter.org"
	AccountsSiteOrigin        = "https://accounts.twreporter.org"
	AccountsSiteDevOrigin     = "http://localhost:3000"
	AccountsSiteStagingOrigin = "https://staging-accounts.twreporter.org"

	// route path
	SendActivationRoutePath      = "mail/send_activation"
	SendSuccessDonationRoutePath = "mail/send_success_donation"

	// controller name
	MembershipController = "membership_controller"
	NewsController       = "news_controller"

	RegistrationTable = "registrations"

	DefaultOrderBy        = "updated_at desc"
	DefaultLimit      int = 10
	DefaultOffset     int = 0
	DefaultActiveCode int = 2

	NewsLetter = "news_letter"

	Activate = "activate"

	// index page sections //
	LastestSection     = "latest_section"
	EditorPicksSection = "editor_picks_section"
	LatestTopicSection = "latest_topic_section"
	ReviewsSection     = "reviews_section"
	CategoriesSection  = "categories_posts_section"
	TopicsSection      = "topics_section"
	PhotoSection       = "photos_section"
	InfographicSection = "infographics_section"

	// index page categories
	HumanRightsAndSociety   = "human_rights_society"
	EnvironmentAndEducation = "environment_education"
	PoliticsAndEconomy      = "politics_economy"
	CultureAndArt           = "culture_art"
	International           = "international"
	LivingAndMedicalCare    = "living_medical_care"

	// table name
	TableUsersBookmarks            = "users_bookmarks"
	TableBookmarks                 = "bookmarks"
	TablePayByPrimeDonations       = "pay_by_prime_donations"
	TablePayByCardTokenDonations   = "pay_by_card_token_donations"
	TablePayByOtherMethodDonations = "pay_by_other_method_donations"

	// oauth type
	GoogleOAuth   = "Google"
	FacebookOAuth = "Facebook"

	// donation
	PeriodicDonationType = "periodic_donation"
	PrimeDonationType    = "prime"
	TokenDonationType    = "token"
	OthersDonationType   = "others"

	// jwt prefix
	MailServiceJWTPrefix = "mail-service-jwt-"

	// custom context key
	AuthUserIDProperty = "auth-user-id"
)

Variables

View Source
var (
	// Conf is go-api config
	Conf configs.ConfYaml
)

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