Documentation ¶
Index ¶
- func AppServiceTree() (resp []view.RespGrpcAppServiceTreeItem, err error)
- func BindProtoToApp(param view.ReqBindProtoToApp) (err error)
- func CreateUseCase(uid uint, param view.ReqCreateGRPCUseCase) (useCaseView view.GrpcUseCaseItem, err error)
- func DeleteUseCase(uid, id uint) (err error)
- func Init(opt Option)
- func MessageParser(desc *desc.MessageDescriptor) db.ProtoFields
- func MethodDetail(methodID uint) (resp view.RespDetailGrpcMethod, err error)
- func ParseAllProto(dirPath string) (err error)
- func ParseProto(proto string)
- func Proto() (resp view.RespListGRPCProto, err error)
- func RequestHistoryItem(id uint) (history view.GrpcHistoryItem, err error)
- func RequestHistoryList(param view.ReqGrpcHistoryList, uid uint) (resp view.RespGrpcHistoryList, err error)
- func SendRequestCallGRPC(req view.MakeGrpcRequest) (response view.GrpcResponse, err error)
- func UpdateUseCase(uid uint, param view.ReqUpdateGRPCUseCase) (useCaseView view.GrpcUseCaseItem, err error)
- func UseCaseDetail(id uint) (resp view.GrpcUseCaseDetail, err error)
- func UseCases(uid uint, param view.ReqListGRPCUseCases) (resp []view.RespListMethodUseCaseItem, err error)
- func UserMakeRequest(uid uint, req view.MakeGrpcRequest) (view.GrpcResponse, error)
- type Option
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 MessageParser ¶
func MessageParser(desc *desc.MessageDescriptor) db.ProtoFields
MessageParser 解析 Proto 结构描述
func MethodDetail ¶
func MethodDetail(methodID uint) (resp view.RespDetailGrpcMethod, err error)
func ParseAllProto ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.