grpcinvoker

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMethodDescriptor added in v0.4.0

func GetMethodDescriptor(call string, proto string) (mtd *desc.MethodDescriptor, err error)

func MakeRequest

func MakeRequest(r ReqProtoConfig) (resp *dynamic.Message, err error)

Types

type ProtoCmd

type ProtoCmd struct {
}

func Instance

func Instance() *ProtoCmd

type ReqProtoConfig

type ReqProtoConfig struct {
	PackageName string
	ServiceName string
	MethodName  string

	InputParams      string
	MetaData         string
	Host             string
	Timeout          time.Duration
	MethodDescriptor *desc.MethodDescriptor
	// contains filtered or unexported fields
}

./grpctest --ProtoFile=aggregation.ProtoFile --ckall=pb.Aggregation.BatchRoomInfo --m='{"Aid":"1"}' --d='{"Rids":[20]}' --Host=10.1.41.166:50127

Jump to

Keyboard shortcuts

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