Documentation ¶
Index ¶
- type HTTPService
- func (service *HTTPService) Any(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) AsController(router ipakku.Controller) error
- func (service *HTTPService) AsModule() ipakku.Opts
- func (service *HTTPService) AsRouter(url string, router ipakku.Router) error
- func (service *HTTPService) Delete(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) Filter(url string, fun ipakku.FilterFunc) error
- func (service *HTTPService) Get(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) GetRouter() *serviceutil.ServiceRouter
- func (service *HTTPService) Head(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) Options(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) Patch(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) Post(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) Put(url string, fun ipakku.HandlerFunc) error
- func (service *HTTPService) SetDebug(debug bool)
- func (service *HTTPService) SetStaticDIR(path, dir string, fun ipakku.FilterFunc) (err error)
- func (service *HTTPService) SetStaticFile(path, file string, fun ipakku.FilterFunc) error
- type RPCService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPService ¶
type HTTPService struct {
// contains filtered or unexported fields
}
HTTPService HTTP服务路由
func (*HTTPService) Any ¶
func (service *HTTPService) Any(url string, fun ipakku.HandlerFunc) error
Any Any
func (*HTTPService) AsController ¶
func (service *HTTPService) AsController(router ipakku.Controller) error
AsController 批量注册路由, 使用RequestMapping字段作为前缀url
func (*HTTPService) AsRouter ¶
func (service *HTTPService) AsRouter(url string, router ipakku.Router) error
AsRouter 批量注册路由, 可以再指定一个前缀url
func (*HTTPService) Delete ¶
func (service *HTTPService) Delete(url string, fun ipakku.HandlerFunc) error
Delete Delete
func (*HTTPService) Filter ¶
func (service *HTTPService) Filter(url string, fun ipakku.FilterFunc) error
Filter Filter
func (*HTTPService) Get ¶
func (service *HTTPService) Get(url string, fun ipakku.HandlerFunc) error
Get Get
func (*HTTPService) GetRouter ¶
func (service *HTTPService) GetRouter() *serviceutil.ServiceRouter
GetRouter GetRouter
func (*HTTPService) Head ¶
func (service *HTTPService) Head(url string, fun ipakku.HandlerFunc) error
Head Head
func (*HTTPService) Options ¶
func (service *HTTPService) Options(url string, fun ipakku.HandlerFunc) error
Options Options
func (*HTTPService) Patch ¶
func (service *HTTPService) Patch(url string, fun ipakku.HandlerFunc) error
Patch Patch
func (*HTTPService) Post ¶
func (service *HTTPService) Post(url string, fun ipakku.HandlerFunc) error
Post Post
func (*HTTPService) Put ¶
func (service *HTTPService) Put(url string, fun ipakku.HandlerFunc) error
Put Put
func (*HTTPService) SetStaticDIR ¶
func (service *HTTPService) SetStaticDIR(path, dir string, fun ipakku.FilterFunc) (err error)
SetStaticDIR SetStaticDIR
func (*HTTPService) SetStaticFile ¶
func (service *HTTPService) SetStaticFile(path, file string, fun ipakku.FilterFunc) error
SetStaticFile SetStaticFile
type RPCService ¶
type RPCService struct {
// contains filtered or unexported fields
}
RPCService RPC服务路由
func (*RPCService) GetRPCService ¶
func (rpcs *RPCService) GetRPCService() *rpc.Server
GetRPCService GetRPCService
func (*RPCService) RegisteRPC ¶
func (rpcs *RPCService) RegisteRPC(rcvr interface{}) error
RegisteRPC RegisteRPC
Click to show internal directories.
Click to hide internal directories.