todos
├── app.yaml
├── user_api.go (all actions pertaining to users: delete, retrieve, list, update, etc.)
└── user.go
Option 2: Use services, keep code in single "app" directory with multiple "service" directories, utilize absolute import paths and GOPATH
$GOPATH
└── src
└── todos
├── api
│ ├── app.yaml (module: api)
│ └── user_handlers.go (imports "todos/user" for GET/DELETE APIs)
├── marketing
│ ├── app.yaml (module: default)
│ └── marketing.go (renders HTML for about/contact/marketing blurb, etc.)
├── billing
│ ├── billing.go
│ ├── app.yaml (module: billing)
│ └── worker.go (imports "todos/user" to obtain billing information, etc.)
└── user
└── user.go (shared code to access user information from Datastore, etc.)
Each of the services can be developed and deployed independently. Assuming your current directory is todos, you can deploy each of the services like so:
$ goapp deploy api/app.yaml
$ goapp deploy billing/app.yaml
$ goapp deploy marketing/app.yaml
Or all of them together like so:
$ goapp deploy api/app.yaml billing/app.yaml marketing/app.yaml
Hope this helps! Let me know if anything still doesn't make sense and I'll try to clarify further. :)
Adam
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.