Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorsMiddleware ¶
type CorsMiddleware struct { middleware.Middleware // contains filtered or unexported fields }
this is a simple middleware sample
func (*CorsMiddleware) Init ¶
func (m *CorsMiddleware) Init(next http.Handler) middleware.Middleware
func (*CorsMiddleware) ServeHTTP ¶
func (m *CorsMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.