Versions in this module Expand all Collapse all v0 v0.6.0 Aug 10, 2022 v0.5.0 Aug 10, 2022 Changes in this version + func Copy(src interface{}) interface + func CopyByValue(original reflect.Value) interface + func GetUserIdFromCtx(ctx context.Context) string + func Iface(iface interface{}) interface + func InterfaceToInt64(value interface{}) int64 + func WithHeaderProcessor(processHeader func(http.Header) []string) func(*Server) + type Config struct + CallRpcTimeoutSeconds int64 + PbGroup string + RpcListenOn string + type GatewayEngine struct + Config Config + ProtoSets [][]byte + func Engine(conf Config, protoSets ...[]byte) *GatewayEngine + func (e *GatewayEngine) DELETE(url string, handler interface{}, optionFs ...OptionFunc) + func (e *GatewayEngine) GET(url string, handler interface{}, optionFs ...OptionFunc) + func (e *GatewayEngine) Group(prefix string) (n *GatewayEngine) + func (e *GatewayEngine) PATCH(url string, handler interface{}, optionFs ...OptionFunc) + func (e *GatewayEngine) POST(url string, handler interface{}, optionFs ...OptionFunc) + func (e *GatewayEngine) PUT(url string, handler interface{}, optionFs ...OptionFunc) + func (e *GatewayEngine) Server(serverOptions ...rest.RunOption) *Server + func (e *GatewayEngine) Upstreams() []upstream + func (e *GatewayEngine) Use(middlewares ...rest.Middleware) + type Handler struct + func NewHandler(w http.ResponseWriter, source grpcurl.DescriptorSource, optionFs ...OptionFunc) *Handler + func (h *Handler) OnReceiveResponse(resp proto.Message) + func (h *Handler) OnReceiveTrailers(stat *status.Status, md metadata.MD) + type Interface interface + DeepCopy func() interface{} + type Option func(svr *Server) + type OptionFunc func(*handlerOption) + func WithBuildHandler(resp interface{}) OptionFunc + func WithResponseHandler(responseHandler ResponseHandler) OptionFunc + type ResponseHandler func(in proto.Message) (code int, msg string, data interface{}) + func BuildHandler(resp interface{}) ResponseHandler + type RouteMapping struct + Method string + Path string + RpcPath string + type Server struct + func (s *Server) Start() + func (s *Server) Stop() + type XResponse struct + Code int32 + Data interface{} + Msg string + ServerTime int64