1 Star 0 Fork 0

SasukeBo / go-micro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
handler.go 480 Bytes
一键复制 编辑 原始数据 按行查看 历史
汪波 提交于 2023-02-23 10:27 . fix: 替换包名
package http
import (
"gitee.com/sasukebo/go-micro/v4/registry"
"gitee.com/sasukebo/go-micro/v4/server"
)
type httpHandler struct {
opts server.HandlerOptions
eps []*registry.Endpoint
hd interface{}
}
func (h *httpHandler) Name() string {
return "handler"
}
func (h *httpHandler) Handler() interface{} {
return h.hd
}
func (h *httpHandler) Endpoints() []*registry.Endpoint {
return h.eps
}
func (h *httpHandler) Options() server.HandlerOptions {
return h.opts
}
1
https://gitee.com/sasukebo/go-micro.git
git@gitee.com:sasukebo/go-micro.git
sasukebo
go-micro
go-micro
plugins/server/http/v4.0.0

搜索帮助