예제 #1
0
func appSecret(c common.Context) string {
	if env.IsLocal() {
		return integrations.PusherDevSecret
	} else if env.IsProd(c) {
		return integrations.PusherProdSecret
	}
	return integrations.PusherStagingSecret
}
예제 #2
0
func AppKey(c common.Context) string {
	if env.IsLocal() {
		return integrations.PusherDevKey
	} else if env.IsProd(c) {
		return integrations.PusherProdKey
	}
	return integrations.PusherStagingKey
}
예제 #3
0
func appId(c common.Context) int {
	if env.IsLocal() {
		return integrations.PusherDevAppId
	} else if env.IsProd(c) {
		return integrations.PusherProdAppId
	}
	return integrations.PusherStagingAppId
}