Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticHandler ¶
type StaticHandler struct {
// contains filtered or unexported fields
}
StaticHandler provides a middleware handler which serves the swagger UI
func NewStaticHandler ¶
func NewStaticHandler(dir string, handler http.Handler) *StaticHandler
NewStaticHandler creates a new middleware handler which serves the swagger UI
func (*StaticHandler) ServeHTTP ¶
func (s *StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.