grpcproxy

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 16 Imported by: 0

README

grpcproxy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendRoutes

func AppendRoutes[R gin.IRoutes](iRoutes R, routes ...Route) R

func Bind

func Bind(c *gin.Context, req proto.Message) error

func NewContext

func NewContext(c *gin.Context) context.Context

func Render

func Render(c *gin.Context, headerMD metadata.MD, trailerMD metadata.MD, resp proto.Message, err error)

Types

type Route

type Route interface {
	Method() string
	Path() string
	Handler() gin.HandlerFunc
}

func NewRoute

func NewRoute(method string, path string, handler gin.HandlerFunc) Route

Directories

Path Synopsis
cmd
example
cmd

Jump to

Keyboard shortcuts

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