feat:multi cluster application

This commit is contained in:
pengcong06
2020-05-25 22:38:03 +08:00
parent d4b7d88b4b
commit 59839439d5
73 changed files with 9838 additions and 6278 deletions

View File

@@ -4,6 +4,7 @@
package pb
import (
context "context"
fmt "fmt"
math "math"
@@ -11,9 +12,10 @@ import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
context "golang.org/x/net/context"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -25,7 +27,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type IndexRepoRequest struct {
// id of repository to index
@@ -457,6 +459,17 @@ type RepoIndexerServer interface {
DescribeRepoEvents(context.Context, *DescribeRepoEventsRequest) (*DescribeRepoEventsResponse, error)
}
// UnimplementedRepoIndexerServer can be embedded to have forward compatible implementations.
type UnimplementedRepoIndexerServer struct {
}
func (*UnimplementedRepoIndexerServer) IndexRepo(ctx context.Context, req *IndexRepoRequest) (*IndexRepoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method IndexRepo not implemented")
}
func (*UnimplementedRepoIndexerServer) DescribeRepoEvents(ctx context.Context, req *DescribeRepoEventsRequest) (*DescribeRepoEventsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DescribeRepoEvents not implemented")
}
func RegisterRepoIndexerServer(s *grpc.Server, srv RepoIndexerServer) {
s.RegisterService(&_RepoIndexer_serviceDesc, srv)
}