Documentation
¶
Index ¶
- Variables
- func Alias(src string, dst ...string)
- func Call(ctx context.Context, desc client.CallDesc, authinfo protocol.AuthInfo, ...) (err error)
- func Do(ctx context.Context, service string, reqBody, rspBody interface{}, ...) (err error)
- func Handle(pattern, token string, handler server.Handler, reqType, rspType jce.Messager)
- func HandleFunc(pattern, token string, handler func(*server.Context), ...)
- func ListenAndServe()
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalServeMutex server.ServeMutex
GlobalServerMutex 全局唯一入口配置
Functions ¶
func Call ¶
func Call(ctx context.Context, desc client.CallDesc, authinfo protocol.AuthInfo, reqBody, rspBody interface{}, opt ...map[string]string) (err error)
Do 包级封装函
func Do ¶
func Do(ctx context.Context, service string, reqBody, rspBody interface{}, opt ...map[string]string) (err error)
Do 包级封装函
func HandleFunc ¶
func HandleFunc(pattern, token string, handler func(*server.Context), reqType, rspType jce.Messager)
HandlerFunc 注册处理函数,函数形式
func ListenAndServe ¶
func ListenAndServe()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.