service

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) AsModule

func (service *HTTPService) AsModule() ipakku.Opts

AsModule 作为一个模块加载

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) SetDebug

func (service *HTTPService) SetDebug(debug bool)

SetDebug SetDebug

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) AsModule

func (rpcs *RPCService) AsModule() ipakku.Opts

AsModule 作为一个模块加载

func (*RPCService) GetRPCService

func (rpcs *RPCService) GetRPCService() *rpc.Server

GetRPCService GetRPCService

func (*RPCService) RegisteRPC

func (rpcs *RPCService) RegisteRPC(rcvr interface{}) error

RegisteRPC RegisteRPC

func (*RPCService) SetDebug

func (rpcs *RPCService) SetDebug(debug bool)

SetDebug SetDebug

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL