tools/utils/module.go

13 lines
265 B
Go
Raw Normal View History

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