Documentation ¶ Index ¶ func ServeContext(ctx context.Context, handler http.Handler, addr string) error func WithAuthorization(h http.Handler, bearer BearerAuth) http.Handler func WithLogging(h http.Handler) http.Handler type BearerAuth Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ServeContext ¶ func ServeContext(ctx context.Context, handler http.Handler, addr string) error func WithAuthorization ¶ added in v0.0.3 func WithAuthorization(h http.Handler, bearer BearerAuth) http.Handler func WithLogging ¶ added in v0.0.5 func WithLogging(h http.Handler) http.Handler Types ¶ type BearerAuth ¶ added in v0.0.3 type BearerAuth interface { Authenticate(ctx context.Context, token string) (*auth.User, error) } Source Files ¶ View all Source files auth.go log.go serve.go Click to show internal directories. Click to hide internal directories.