easy_grpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TEMP_DIR    = "descriptor.tmp"
	PB_FILENAME = "descriptor.pb"
)

Variables

This section is empty.

Functions

func NewGRPCHandler

func NewGRPCHandler(address string) *grpcHandler

Types

type DynamicAPI added in v0.1.1

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

func NewDynamicAPI added in v0.1.1

func NewDynamicAPI(pfd protoreflect.FileDescriptor, service string, method string) *DynamicAPI

func (*DynamicAPI) Invoke added in v0.1.1

func (d *DynamicAPI) Invoke(handler *grpcHandler, jsonMessage string) (string, error)

type DynamicGRPC added in v0.1.1

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

func GenerateDynamicGRPC added in v0.1.1

func GenerateDynamicGRPC(path string) (*DynamicGRPC, error)

func (*DynamicGRPC) GetDescriptorFileByName added in v0.1.1

func (d *DynamicGRPC) GetDescriptorFileByName(filename string) (protoreflect.FileDescriptor, error)

Jump to

Keyboard shortcuts

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