diff --git a/server.go b/server.go new file mode 100644 index 0000000..f81775a --- /dev/null +++ b/server.go @@ -0,0 +1,10 @@ +package contracts + +import ( + "net/http" +) + +type Server interface { + Execute(*http.Request) any + ServeHTTP(http.ResponseWriter, *http.Request) +} diff --git a/service.go b/service.go index 1a6a1e7..a6124af 100644 --- a/service.go +++ b/service.go @@ -1,10 +1,6 @@ package contracts -import ( - "net/http" -) - type Service interface { - Execute(*http.Request) any - ServeHTTP(http.ResponseWriter, *http.Request) -} \ No newline at end of file + GetResListener(code string) ResListener + GetControllerr(code string) Controller +}