Ai
1 Star 0 Fork 0

saxon134/go-utils

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
server.handler.go 325 Bytes
Copy Edit Raw Blame History
saxon134 authored 2023-10-03 16:56 +08:00 . init
package saMicro
import (
"context"
)
type Request struct {
Method string
Data string
}
type Response struct {
Data string
}
type Handler func(ctx context.Context, in *Request) (ack *Response, err error)
var _handlers map[string]Handler
func RegisterHandlers(handlers map[string]Handler) {
_handlers = handlers
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/saxon134/go-utils.git
git@gitee.com:saxon134/go-utils.git
saxon134
go-utils
go-utils
b2602dc8c3fc

Search