tools/utils/module.go
2022-03-28 21:22:34 +01:00

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))
}