initial rewrite, use micro v4 and not cms-xxx stuff

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-08-11 21:27:38 +03:00
parent b0f76d9bac
commit 2ef12956ac
22 changed files with 666 additions and 1036 deletions

28
proto/pkgdash_micro.pb.go Normal file
View File

@@ -0,0 +1,28 @@
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
// versions:
// - protoc-gen-go-micro v3.10.4
// - protoc v4.23.4
// source: pkgdash.proto
package pkgdashpb
import (
context "context"
client "go.unistack.org/micro/v3/client"
)
var (
PkgdashServiceName = "PkgdashService"
)
type PkgdashServiceClient interface {
ListPackage(ctx context.Context, req *ListPackageReq, opts ...client.CallOption) (*ListPackageRsp, error)
UpdateInfo(ctx context.Context, req *UpdateInfoPackageReq, opts ...client.CallOption) (*UpdateInfoPackageRsp, error)
AddComment(ctx context.Context, req *CommentReq, opts ...client.CallOption) (*CommentRsp, error)
}
type PkgdashServiceServer interface {
ListPackage(ctx context.Context, req *ListPackageReq, rsp *ListPackageRsp) error
UpdateInfo(ctx context.Context, req *UpdateInfoPackageReq, rsp *UpdateInfoPackageRsp) error
AddComment(ctx context.Context, req *CommentReq, rsp *CommentRsp) error
}