Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.composer
.config
.npm
Library
.local
go
42 changes: 21 additions & 21 deletions .platform/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@
"https://{default}/":
id: main
type: upstream
upstream: "main:http"
upstream: "mainb:http"
cache:
enabled: true
cookies: []
default_ttl: 300

"https://{default}/php":
id: php
type: upstream
upstream: "php:http"
# "https://{default}/php":
# id: php
# type: upstream
# upstream: "php:http"

"https://{default}/nodejs":
id: nodejs
type: upstream
upstream: "nodejs:http"
# "https://{default}/nodejs":
# id: nodejs
# type: upstream
# upstream: "nodejs:http"

"https://{default}/python":
id: python
type: upstream
upstream: "python:http"
# "https://{default}/python":
# id: python
# type: upstream
# upstream: "python:http"

"https://{default}/java":
id: java
type: upstream
upstream: "java:http"
# "https://{default}/java":
# id: java
# type: upstream
# upstream: "java:http"

"https://{default}/golang":
id: golang
type: upstream
upstream: "golang:http"
# "https://{default}/golang":
# id: golang
# type: upstream
# upstream: "golang:http"
92 changes: 46 additions & 46 deletions .platform/services.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
# This file defines services you want available to your application.
# # This file defines services you want available to your application.

elasticsearch77:
type: elasticsearch:7.7
disk: 256
size: S
influxdb18:
type: influxdb:1.8
disk: 256
size: S
kafka25:
type: kafka:2.5
disk: 512
size: S
memcached16:
type: memcached:1.6
size: S
mongodb36:
type: mongodb:3.6
disk: 1024
size: S
mariadb104:
type: mariadb:10.4
disk: 256
size: S
postgresql12:
type: postgresql:12
disk: 256
size: S
rabbitmq38:
type: rabbitmq:3.8
disk: 1024
size: S
redis6:
type: redis:6.0
size: S
solr86:
type: solr:8.6
disk: 256
size: S
configuration:
cores:
maincore:
conf_dir: !archive "solr-config"
endpoints:
solr:
core: maincore
# elasticsearch77b:
# type: elasticsearch:7.7
# disk: 256
# size: S
# influxdb18b:
# type: influxdb:1.8
# disk: 256
# size: S
# kafka25b:
# type: kafka:2.5
# disk: 512
# size: S
# memcached16b:
# type: memcached:1.6
# size: S
# mongodb36b:
# type: mongodb:3.6
# disk: 1024
# size: S
# mariadb104b:
# type: mariadb:10.4
# disk: 256
# size: S
# postgresql12b:
# type: postgresql:12
# disk: 256
# size: S
# rabbitmq38b:
# type: rabbitmq:3.8
# disk: 1024
# size: S
# redis6b:
# type: redis:6.0
# size: S
# solr86b:
# type: solr:8.6
# disk: 256
# size: S
# configuration:
# cores:
# maincore:
# conf_dir: !archive "solr-config"
# endpoints:
# solr:
# core: maincore
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
44 changes: 29 additions & 15 deletions golang/go.mod
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
module github.com/platformsh/language-examples

require (
github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/gin-gonic/gin v1.4.0
github.com/go-sql-driver/mysql v1.4.1
github.com/go-stack/stack v1.8.0 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/google/go-cmp v0.3.0 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/lib/pq v1.1.1
github.com/montanaflynn/stats v0.5.0 // indirect
github.com/platformsh/config-reader-go/v2 v2.3.0
github.com/gin-gonic/gin v1.7.4
github.com/go-playground/validator/v10 v10.9.0 // indirect
github.com/go-sql-driver/mysql v1.6.0
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/lib/pq v1.10.3
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/platformsh/config-reader-go/v2 v2.3.1
github.com/rtt/Go-Solr v0.0.0-20190512221613-64fac99dcae2
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94
github.com/streadway/amqp v1.0.0
github.com/tidwall/pretty v1.0.0 // indirect
github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c // indirect
github.com/xdg/stringprep v1.0.0 // indirect
go.mongodb.org/mongo-driver v1.0.3
google.golang.org/appengine v1.6.1 // indirect
github.com/ugorji/go v1.2.6 // indirect
github.com/xdg/scram v1.0.3 // indirect
github.com/xdg/stringprep v1.0.3 // indirect
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
go.mongodb.org/mongo-driver v1.7.2
golang.org/x/crypto v0.0.0-20210920023735-84f357641f63 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

go 1.13
Loading