2022-03-23 00:39:53 +00:00
|
|
|
package utils
|
|
|
|
|
2022-03-24 21:07:44 +00:00
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
|
|
|
"net/http"
|
|
|
|
)
|
2022-03-23 00:39:53 +00:00
|
|
|
|
|
|
|
type IModule interface {
|
2022-03-28 21:22:34 +01:00
|
|
|
GetName() string
|
|
|
|
GetEndpoint() string
|
2022-03-25 01:01:46 +00:00
|
|
|
SetupModule(*mux.Router, func(cb func(http.ResponseWriter, *http.Request, *State)) func(rw http.ResponseWriter, req *http.Request))
|
2022-03-23 00:39:53 +00:00
|
|
|
}
|