ginapi

package module
v0.0.0-...-1a786dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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 ConvertRoute(r string) (string, error)

func ErrorResponse

func ErrorResponse(c *gin.Context, err error)

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL