11 Star 11 Fork 0

Gitee 极速下载 / goa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/goadesign/goa
克隆/下载
endpoint.go 775 Bytes
一键复制 编辑 原始数据 按行查看 历史
package goa
import "context"
const (
// MethodKey is the request context key used to store the name of the
// method as defined in the design. The generated transport code
// initializes the corresponding value prior to invoking the endpoint.
MethodKey contextKey = iota + 1
// ServiceKey is the request context key used to store the name of the
// service as defined in the design. The generated transport code
// initializes the corresponding value prior to invoking the endpoint.
ServiceKey
)
type (
// private type used to define context keys.
contextKey int
)
// Endpoint exposes service methods to remote clients independently of the
// underlying transport.
type Endpoint func(ctx context.Context, request interface{}) (response interface{}, err error)
1
https://gitee.com/mirrors/goa.git
git@gitee.com:mirrors/goa.git
mirrors
goa
goa
v2.2.5

搜索帮助