Documentation ¶
Index ¶
- Constants
- type Service
- func (restfult *Service) HTTPLisentRun(adders string, HandleURL ...[]Setting) (err error)
- func (restfult *Service) HTTPSListen(adders string, certFile string, keyFile string, HandleURL ...[]Setting) error
- func (restfult *Service) ListenProxy(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type Setting
Constants ¶
View Source
const ( Client = "cli" Backend = "back" )
// IRestfult ...
type IRestfult interface { ConnectPool() *http.Client HTTPLisentRun(ListenIP string, HandleURL ...[]myhttp.RESTfulURL) (err error) ListenProxy(w http.ResponseWriter, r *http.Request, ps httprouter.Params) }
ConnType ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service IRestfult
func (*Service) HTTPLisentRun ¶
HTTPLisentRun ...
func (*Service) HTTPSListen ¶ added in v1.0.1
func (restfult *Service) HTTPSListen(adders string, certFile string, keyFile string, HandleURL ...[]Setting) error
HTTPSListen ... wrapper for TLS service function
func (*Service) ListenProxy ¶
func (restfult *Service) ListenProxy(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ListenProxy ...
Click to show internal directories.
Click to hide internal directories.