Skip to content
Snippets Groups Projects
Commit a606b64e authored by Patrick's avatar Patrick
Browse files

modify comments

parent e7999f51
No related branches found
No related tags found
No related merge requests found
...@@ -40,14 +40,15 @@ import ( ...@@ -40,14 +40,15 @@ import (
const parseParameterErrorStr = "An error occurred while parsing parameters on the server" const parseParameterErrorStr = "An error occurred while parsing parameters on the server"
// RestServer user can implement this server interface
type RestServer interface { type RestServer interface {
// start rest server // Start rest server
Start(url common.URL) Start(url common.URL)
// deploy a http api // Deploy a http api
Deploy(restMethodConfig *rest_config.RestMethodConfig, routeFunc func(request RestServerRequest, response RestServerResponse)) Deploy(restMethodConfig *rest_config.RestMethodConfig, routeFunc func(request RestServerRequest, response RestServerResponse))
// unDeploy a http api // UnDeploy a http api
UnDeploy(restMethodConfig *rest_config.RestMethodConfig) UnDeploy(restMethodConfig *rest_config.RestMethodConfig)
// destroy rest server // Destroy rest server
Destroy() Destroy()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment