grpcRegister

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcController

type GrpcController interface {
}

GrpcController 接口用于标识实现了 gRPC 服务的 Controller

type GrpcRegister

type GrpcRegister struct {
	// contains filtered or unexported fields
}

func NewGrpcRegister

func NewGrpcRegister(e *gin.Engine, opts ...*Option) *GrpcRegister

func (*GrpcRegister) Register

func (g *GrpcRegister) Register(serviceName string, ctrl GrpcController, middlewareChain ...gin.HandlerFunc)

func (*GrpcRegister) RegisterGrpcControllerToGinRouter

func (g *GrpcRegister) RegisterGrpcControllerToGinRouter()

type MethodMiddlewareSlot added in v0.1.4

type MethodMiddlewareSlot struct {
	//Method          string
	MiddlewareChain []gin.HandlerFunc
}

type Opt

type Opt = Option

type Option

type Option struct {
	PrefixWhiteList      []string
	MethodMiddlewareSlot map[string]MethodMiddlewareSlot
}

Jump to

Keyboard shortcuts

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