routers

package
v0.0.0-...-585f190 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIMethodDetails

type APIMethodDetails struct {
	// 服务名
	ServiceName string
	// 方法名
	HttpMethodName  string
	AuthRequired    bool
	UseJsonResponse bool
	RequestMethod   string
	GrpcFullRouter  string
}

type HttpURIRouteToSrvMethod

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

func Get

func NewHttpURIRouteToSrvMethod

func NewHttpURIRouteToSrvMethod() *HttpURIRouteToSrvMethod

func (*HttpURIRouteToSrvMethod) AddLocalSrv

func (r *HttpURIRouteToSrvMethod) AddLocalSrv(fullMethod string)

func (*HttpURIRouteToSrvMethod) AddRoute

func (r *HttpURIRouteToSrvMethod) AddRoute(uri string, srvMethod *APIMethodDetails)

func (*HttpURIRouteToSrvMethod) DeleteRouterDetails

func (h *HttpURIRouteToSrvMethod) DeleteRouterDetails(fullMethod string, method *descriptorpb.MethodDescriptorProto)

func (*HttpURIRouteToSrvMethod) DeleteRouters

func (*HttpURIRouteToSrvMethod) GetAllRoutes

func (r *HttpURIRouteToSrvMethod) GetAllRoutes() map[string]*APIMethodDetails

func (*HttpURIRouteToSrvMethod) GetRoute

func (*HttpURIRouteToSrvMethod) GetRouteByGrpcMethod

func (r *HttpURIRouteToSrvMethod) GetRouteByGrpcMethod(method string) *APIMethodDetails

func (*HttpURIRouteToSrvMethod) IsLocalSrv

func (r *HttpURIRouteToSrvMethod) IsLocalSrv(fullMethod string) bool

func (*HttpURIRouteToSrvMethod) LoadAllRouters

func (r *HttpURIRouteToSrvMethod) LoadAllRouters(pd gateway.ProtobufDescription)

Jump to

Keyboard shortcuts

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