package xtwirp
import "net/http"
// Server is a minimal interface for a Twirp server.
type Server interface
// WrapHandler wraps the Twirp server handler with our custom middleware.
func WrapHandler(s Server) http.Handler
// RegisterServer registers Twirp server on an HTTP mux.
// It also calls WrapHandler to add default middleware.
func RegisterServer(mux *http.ServeMux, s Server)