Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor app for multitenancy #997

Merged
merged 1 commit into from
Feb 22, 2016
Merged

Refactor app for multitenancy #997

merged 1 commit into from
Feb 22, 2016

Conversation

tomwilkie
Copy link
Contributor

  • Add interfaces to allow for alternative implementations for Collector, ControlRouter
    and PipeRouter.
  • Pass contexts on http handlers to these interfaces. Although not used by the current
    (local, in-memory) implementations, the idea is this will be used to pass headers to
    implementations which support multitenancy (by, for instance, putting an authenticating
    reverse proxy in form of the app, and then inspecting the headers of the request for
    a used id).

// r.ParseForm()
respondWith(w, http.StatusOK, rep.Report())
func makeRawReportHandler(rep Reporter) CtxHandlerFunc {
return func(ctx context.Context, w http.ResponseWriter, r *http.Request) {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@paulbellamy
Copy link
Contributor

A couple gripes about comments, but otherwise LGTM.

@tomwilkie tomwilkie force-pushed the multi-tenant-refactor branch 2 times, most recently from 96c82d1 to 56758f6 Compare February 22, 2016 14:37
- Add interfaces to allow for alternative implementations for Collector, ControlRouter
  and PipeRouter.
- Pass contexts on http handlers to these interfaces.  Although not used by the current
  (local, in-memory) implementations, the idea is this will be used to pass headers to
  implementations which support multitenancy (by, for instance, putting an authenticating
  reverse proxy in form of the app, and then inspecting the headers of the request for
  a used id).
@tomwilkie tomwilkie force-pushed the multi-tenant-refactor branch from 56758f6 to 5f7f74b Compare February 22, 2016 14:54
tomwilkie added a commit that referenced this pull request Feb 22, 2016
@tomwilkie tomwilkie merged commit 45d875b into master Feb 22, 2016
@tomwilkie tomwilkie deleted the multi-tenant-refactor branch February 22, 2016 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants