grpctest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppServiceTree

func AppServiceTree() (resp []view.RespGrpcAppServiceTreeItem, err error)

func BindProtoToApp

func BindProtoToApp(param view.ReqBindProtoToApp) (err error)

func CreateUseCase

func CreateUseCase(uid uint, param view.ReqCreateGRPCUseCase) (useCaseView view.GrpcUseCaseItem, err error)

func DeleteUseCase

func DeleteUseCase(uid, id uint) (err error)

func Init

func Init(opt Option)

func MessageParser

func MessageParser(desc *desc.MessageDescriptor) db.ProtoFields

MessageParser 解析 Proto 结构描述

func MethodDetail

func MethodDetail(methodID uint) (resp view.RespDetailGrpcMethod, err error)

func ParseAllProto

func ParseAllProto(dirPath string) (err error)

func ParseProto

func ParseProto(proto string)

example:

	proto := /home/www/server/fun-ProtoParser/fun/comment/srv/comment/comment.proto
 ParseProto(proto)

func Proto

func Proto() (resp view.RespListGRPCProto, err error)

func RequestHistoryItem

func RequestHistoryItem(id uint) (history view.GrpcHistoryItem, err error)

func RequestHistoryList

func RequestHistoryList(param view.ReqGrpcHistoryList, uid uint) (resp view.RespGrpcHistoryList, err error)

func SendRequestCallGRPC

func SendRequestCallGRPC(req view.MakeGrpcRequest) (response view.GrpcResponse, err error)

func UpdateUseCase

func UpdateUseCase(uid uint, param view.ReqUpdateGRPCUseCase) (useCaseView view.GrpcUseCaseItem, err error)

func UseCaseDetail

func UseCaseDetail(id uint) (resp view.GrpcUseCaseDetail, err error)

func UseCases

func UseCases(uid uint, param view.ReqListGRPCUseCases) (resp []view.RespListMethodUseCaseItem, err error)

func UserMakeRequest

func UserMakeRequest(uid uint, req view.MakeGrpcRequest) (view.GrpcResponse, error)

Types

type Option

type Option struct {
	Enabled  bool
	DB       *gorm.DB
	ProtoDir string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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