Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
gonethttphandler.RequestsHandler
gonethttphandler.ResponsesHandler
}
Handler is the handler implementation for handling protoJSON requests and responses
func NewHandler ¶
func NewHandler( mode *goflagsmode.Flag, rawErrorHandler gonethttphandler.RawErrorHandler, ) (*Handler, error)
NewHandler creates a new protoJSON handler
Parameters:
- mode: the flag mode
- rawErrorHandler: the raw error handler for the responses handler
Returns:
- *Handler: the created protoJSON handler
- error: the error if any
Click to show internal directories.
Click to hide internal directories.