2023-08-11 21:27:38 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
|
|
|
// versions:
|
2023-08-12 19:26:50 +03:00
|
|
|
// - protoc-gen-go-micro v3.10.3
|
2023-08-11 21:27:38 +03:00
|
|
|
// - protoc v4.23.4
|
|
|
|
// source: pkgdash.proto
|
|
|
|
|
|
|
|
package pkgdashpb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2023-08-12 19:26:50 +03:00
|
|
|
v3 "go.unistack.org/micro-server-http/v3"
|
|
|
|
client "go.unistack.org/micro/v3/client"
|
|
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
2023-08-11 21:27:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
PkgdashServiceName = "PkgdashService"
|
|
|
|
)
|
2023-08-12 19:26:50 +03:00
|
|
|
var (
|
|
|
|
PkgdashServiceServerEndpoints = []v3.EndpointMetadata{
|
|
|
|
{
|
|
|
|
Name: "PkgdashService.ListPackage",
|
|
|
|
Path: "/v1/packages",
|
|
|
|
Method: "GET",
|
|
|
|
Body: "",
|
|
|
|
Stream: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "PkgdashService.UpdatePackage",
|
|
|
|
Path: "/v1/package/{id}",
|
|
|
|
Method: "POST",
|
|
|
|
Body: "*",
|
|
|
|
Stream: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "PkgdashService.AddComment",
|
|
|
|
Path: "/v1/package/{pkg}/comment",
|
|
|
|
Method: "POST",
|
|
|
|
Body: "*",
|
|
|
|
Stream: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "PkgdashService.AddPackage",
|
|
|
|
Path: "/v1/package",
|
|
|
|
Method: "POST",
|
|
|
|
Body: "*",
|
|
|
|
Stream: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "PkgdashService.GetModule",
|
|
|
|
Path: "/v1/module",
|
|
|
|
Method: "GET",
|
|
|
|
Body: "",
|
|
|
|
Stream: false,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
)
|
2023-08-11 21:27:38 +03:00
|
|
|
|
|
|
|
type PkgdashServiceClient interface {
|
2023-08-12 19:26:50 +03:00
|
|
|
ListPackage(ctx context.Context, req *emptypb.Empty, opts ...client.CallOption) (*ListPackageRsp, error)
|
|
|
|
UpdatePackage(ctx context.Context, req *UpdatePackageReq, opts ...client.CallOption) (*UpdatePackageRsp, error)
|
|
|
|
AddComment(ctx context.Context, req *AddCommentReq, opts ...client.CallOption) (*AddCommentRsp, error)
|
|
|
|
AddPackage(ctx context.Context, req *AddPackageReq, opts ...client.CallOption) (*AddPackageRsp, error)
|
|
|
|
GetModule(ctx context.Context, req *GetModuleReq, opts ...client.CallOption) (*GetModuleRsp, error)
|
2023-08-11 21:27:38 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type PkgdashServiceServer interface {
|
2023-08-12 19:26:50 +03:00
|
|
|
ListPackage(ctx context.Context, req *emptypb.Empty, rsp *ListPackageRsp) error
|
2023-08-11 21:45:08 +03:00
|
|
|
UpdatePackage(ctx context.Context, req *UpdatePackageReq, rsp *UpdatePackageRsp) error
|
|
|
|
AddComment(ctx context.Context, req *AddCommentReq, rsp *AddCommentRsp) error
|
|
|
|
AddPackage(ctx context.Context, req *AddPackageReq, rsp *AddPackageRsp) error
|
|
|
|
GetModule(ctx context.Context, req *GetModuleReq, rsp *GetModuleRsp) error
|
2023-08-11 21:27:38 +03:00
|
|
|
}
|