mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-25 12:26:26 +00:00
16 lines
307 B
Go
16 lines
307 B
Go
|
package service
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/justinas/alice"
|
||
|
)
|
||
|
|
||
|
type ServeMux interface {
|
||
|
ServeHTTP(http.ResponseWriter, *http.Request)
|
||
|
Handle(pattern string, handler http.Handler)
|
||
|
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
|
||
|
}
|
||
|
|
||
|
type Middleware = alice.Constructor
|