13 lines
265 B
Go
13 lines
265 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/gorilla/mux"
|
|
"net/http"
|
|
)
|
|
|
|
type IModule interface {
|
|
GetName() string
|
|
GetEndpoint() string
|
|
SetupModule(*mux.Router, func(cb func(http.ResponseWriter, *http.Request, *State)) func(rw http.ResponseWriter, req *http.Request))
|
|
}
|