1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-23 21:44:41 +02:00

feat(web): add start and stop functions to the web (#2519)

This commit is contained in:
JellyTony
2022-07-01 15:06:27 +08:00
committed by GitHub
parent 87c96bc4d0
commit 96576a612a
2 changed files with 34 additions and 5 deletions

View File

@@ -16,6 +16,8 @@ type Service interface {
Options() Options
Handle(pattern string, handler http.Handler)
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
Start() error
Stop() error
Run() error
}