Added WebHookServer #37

Merged
merged 8 commits into from Mar 9, 2016

Projects

None yet

3 participants

@jonasfj
Member
jonasfj commented Mar 8, 2016

I think this will be useful for livelog and interactive features...

@jonasfj jonasfj Added WebHookServer
8a60044
@petemoore petemoore was assigned by jonasfj Mar 8, 2016
@gregarndt gregarndt commented on an outdated diff Mar 8, 2016
runtime/taskcontext.go
@@ -84,3 +88,26 @@ func (c *TaskContext) LogDrain() io.Writer {
func (c *TaskContext) NewLogReader() (io.ReadCloser, error) {
return c.logStream.NextReader()
}
+
+// AttachWebHook will take an http.Handler and expose it to the internet such
+// that requests to any sub-resource of url returned will be forwarded to the
+// handler.
+//
+// Addtionally, we promise that the URL contains a cryptographically random
@gregarndt
gregarndt Mar 8, 2016 Member

Additionally

jonasfj added some commits Mar 8, 2016
@jonasfj jonasfj Fixed typo
2f9a1d5
@jonasfj jonasfj Better docs
d50f474
@jonasfj jonasfj Bug fixes
c2d2690
@jonasfj jonasfj added tests and fixes... credits to @petemoore for forcing me to do t…
…ests
d15e907
@jonasfj jonasfj Merge branch 'master' of github.com:taskcluster/taskcluster-worker in…
…to http-server
f5ecfd7
@jonasfj jonasfj Merge branch 'master' of github.com:taskcluster/taskcluster-worker in…
…to http-server

Conflicts:
	runtime/taskcontext.go
f8ebef0
@jonasfj jonasfj Merge branch 'master' of github.com:taskcluster/taskcluster-worker in…
…to http-server
64f7bf3
@jonasfj jonasfj merged commit 070d8e8 into master Mar 9, 2016

0 of 3 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/travis-ci/push The Travis CI build is in progress
Details
coverage/coveralls Coverage pending from Coveralls.io
Details
@jonasfj jonasfj deleted the http-server branch Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment