add contracts

This commit is contained in:
yanghao05
2023-07-31 18:11:33 +08:00
parent 7b9c3cf531
commit 3a435be177
3 changed files with 15 additions and 0 deletions

8
contracts/http.go Normal file
View File

@@ -0,0 +1,8 @@
package contracts
type Route interface{}
type HttpService interface {
Serve() error
GetEngine() interface{}
}

6
contracts/micro.go Normal file
View File

@@ -0,0 +1,6 @@
package contracts
type MicroService interface {
Serve() error
GetEngine() any
}