Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextAsDecoderInput ¶
func ContextAsDecoderInput(ctx *gin.Context) apigw_v1.DecoderInput
Function ContextAsDecoderInput converts a gin.Context to a DecoderInput.
This function is used in the generated code.
func ConvertRoute ¶
func ErrorResponse ¶
func Handler ¶
func Handler(srv interface{}, method *apigw_v1.MethodDesc, interceptor grpc.UnaryServerInterceptor) gin.HandlerFunc
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(router gin.IRouter, unaryInterceptor grpc.UnaryServerInterceptor, ) *Registry
func (*Registry) RegisterService ¶
func (r *Registry) RegisterService(sd *apigw_v1.ServiceDesc, impl interface{})
Click to show internal directories.
Click to hide internal directories.