protor

package module
v0.2.4 Latest Latest
Warning

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

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

README

proto3-reflection

Helper for working with proto

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseImplementation

func ParseImplementation(services map[string]interface{}) map[string]ImplementationInfo

ParseImplementation

{package}.{serviceName}:*implementationStruct

func ParseProtoServices

func ParseProtoServices(packageName protoreflect.FullName, enumOptions []protoreflect.ExtensionType, methodOptions []protoreflect.ExtensionType) map[protoreflect.FullName]MethodInfo

ParseProtoServices

 package {$packageName}
	extend google.protobuf.EnumValueOptions []{enumOptions}
	extend google.protobuf.MethodOptions []{methodOptions}

Types

type ImplementationInfo

type ImplementationInfo struct {
	MethodValue        reflect.Value
	RequestMessageType reflect.Type
}

type MethodInfo

type MethodInfo struct {
	Service protoreflect.ServiceDescriptor
	Method  protoreflect.MethodDescriptor

	//map[scenario]map[options]extensionValue
	Scenarios map[protoreflect.ExtensionType]map[protoreflect.ExtensionType]interface{}
}

Directories

Path Synopsis
fixtures
gen

Jump to

Keyboard shortcuts

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