internal/content: refactor and export type for content handler funcs

Simplified the content handler and exported the type for use in packages
creating a content server. A content handler now fits the interface of
http.Handler making it more portable. Simplified error handling API.

Change-Id: I2a224b9358d92821af4e0b29c5d77acfb10ef55b
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/498262
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
3 files changed
tree: 6182dd0feda276670ce8e5ac03a82ec4c68f9a60
  1. config/
  2. godev/
  3. CONTRIBUTING.md
  4. doc.go
  5. go.mod
  6. go.sum
  7. LICENSE
  8. PATENTS
  9. README.md
  10. types.go
README.md

Go Telemetry

This repository holds the Go Telemetry server code and libraries.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.