Documentation ¶
Index ¶
- Variables
- func ApiHttp(rw http.ResponseWriter, req *http.Request, service func() *Service)
- func PackApi()
- func PackApiWithPath(exePath func() *string)
- func SetExecPath(path *string)
- func SetLogTrimPrefix(prefix string)
- func StartService(addr string)
- func StartTLSService(addr string, caFile, certFile, keyFile string)
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GET = httpM(stdhttp.MethodGet) POST = httpM(stdhttp.MethodPost) PUT = httpM(stdhttp.MethodPut) // RegisterErrorHandler error handler RegisterErrorHandler = http.RegisterErrorHandler // AddHttpHandle http handler AddHttpHandle = http.AddHttpHandle // RegisterTypeMapper type handler RegisterTypeMapper = call.RegisterTypeMapper // RegisterReturnHandler register handler RegisterReturnHandler = http.RegisterReturnHandler NewStream = rettypes.NewStream )
Functions ¶
func PackApiWithPath ¶
func PackApiWithPath(exePath func() *string)
func SetExecPath ¶
func SetExecPath(path *string)
func SetLogTrimPrefix ¶ added in v0.0.2
func SetLogTrimPrefix(prefix string)
func StartService ¶
func StartService(addr string)
func StartTLSService ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.