Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderContentType = "Content-Type" ApplicationGRPC = "application/grpc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.2.0
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶ added in v0.2.0
func (*Builder) WithGRPC ¶ added in v0.3.0
WithGRPC allows the server to support hybrid http/grpc calls
func (*Builder) WithHandlers ¶ added in v0.3.1
WithHandlers toggles the use of Gorilla Handlers.
Handlers are enabled by default:
* RecoveryHandler - converts panics into 500 Internal Server Error * CombinedLoggingHandler - logging HTTP requests in a known format
func (*Builder) WithPrometheus ¶ added in v0.2.0
WithPrometheus enables Prometheus metric collection from function invocation.
Deprecated
Click to show internal directories.
Click to hide internal directories.