Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server implements the web server for the Tonic service.
func (*Server) ErrorResponse ¶
func (ws *Server) ErrorResponse(w http.ResponseWriter, status int, message string)
ErrorResponse logs an error and renders an error page with the given message, returning the given status code to the user.
func (*Server) SetLogger ¶
SetLogger sets the logger instance for the web service. If unset the service defines its own logger with the same configuration as the standard Logger.
Click to show internal directories.
Click to hide internal directories.