Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-workhorse
Commits
9136ca98
Commit
9136ca98
authored
Jul 10, 2017
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GetBlob RPC instead of TreeEntry RPC for serving blobs
parent
23e62f51
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
2614 additions
and
591 deletions
+2614
-591
gitaly_test.go
gitaly_test.go
+8
-11
internal/git/blob.go
internal/git/blob.go
+8
-8
internal/gitaly/blob.go
internal/gitaly/blob.go
+4
-4
internal/gitaly/gitaly.go
internal/gitaly/gitaly.go
+3
-3
internal/testhelper/gitaly.go
internal/testhelper/gitaly.go
+7
-9
vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION
vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION
+1
-1
vendor/gitlab.com/gitlab-org/gitaly-proto/go/blob.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/blob.pb.go
+288
-0
vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go
+477
-130
vendor/gitlab.com/gitlab-org/gitaly-proto/go/deprecated-services.pb.go
....com/gitlab-org/gitaly-proto/go/deprecated-services.pb.go
+1146
-0
vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go
+80
-79
vendor/gitlab.com/gitlab-org/gitaly-proto/go/notifications.pb.go
...gitlab.com/gitlab-org/gitaly-proto/go/notifications.pb.go
+28
-28
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ref.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ref.pb.go
+124
-124
vendor/gitlab.com/gitlab-org/gitaly-proto/go/repository-service.pb.go
...b.com/gitlab-org/gitaly-proto/go/repository-service.pb.go
+144
-0
vendor/gitlab.com/gitlab-org/gitaly-proto/go/shared.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/shared.pb.go
+118
-17
vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go
+101
-101
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go
+72
-71
vendor/vendor.json
vendor/vendor.json
+5
-5
No files found.
gitaly_test.go
View file @
9136ca98
...
...
@@ -2,7 +2,6 @@ package main
import
(
"bytes"
"encoding/base64"
"fmt"
"math/rand"
"net"
...
...
@@ -331,13 +330,12 @@ func TestGetBlobProxiedToGitalySuccessfully(t *testing.T) {
defer
gitalyServer
.
Stop
()
gitalyAddress
:=
"unix://"
+
socketPath
pathEncoded
:=
base64
.
StdEncoding
.
EncodeToString
([]
byte
(
"LICENSE"
))
repoStorage
:=
"default"
revisionEncoded
:=
base64
.
StdEncoding
.
EncodeToString
([]
byte
(
"54fcc214b94e78d7a41a9a8fe6d87a5e59500e51"
))
oid
:=
"54fcc214b94e78d7a41a9a8fe6d87a5e59500e51"
repoRelativePath
:=
"foo/bar.git"
jsonParams
:=
fmt
.
Sprintf
(
`{"GitalyServer":{"Address":"%s","Token":""},"
TreeEntryRequest":{"repository":{"storage_name":"%s","relative_path":"%s"},"revision":"%s","path":"%s"
}}`
,
gitalyAddress
,
repoStorage
,
repoRelativePath
,
revisionEncoded
,
pathEncode
d
)
expectedBody
:=
testhelper
.
Gitaly
TreeEntry
ResponseMock
jsonParams
:=
fmt
.
Sprintf
(
`{"GitalyServer":{"Address":"%s","Token":""},"
GetBlobRequest":{"repository":{"storage_name":"%s","relative_path":"%s"},"oid":"%s","limit":-1
}}`
,
gitalyAddress
,
repoStorage
,
repoRelativePath
,
oi
d
)
expectedBody
:=
testhelper
.
Gitaly
GetBlob
ResponseMock
blobLength
:=
len
(
expectedBody
)
resp
,
body
,
err
:=
doSendDataRequest
(
"/something"
,
"git-blob"
,
jsonParams
)
...
...
@@ -354,12 +352,11 @@ func TestGetBlobProxiedToGitalyInterruptedStream(t *testing.T) {
defer
gitalyServer
.
Stop
()
gitalyAddress
:=
"unix://"
+
socketPath
pathEncoded
:=
base64
.
StdEncoding
.
EncodeToString
([]
byte
(
"LICENSE"
))
repoStorage
:=
"default"
revisionEncoded
:=
base64
.
StdEncoding
.
EncodeToString
([]
byte
(
"54fcc214b94e78d7a41a9a8fe6d87a5e59500e51"
))
oid
:=
"54fcc214b94e78d7a41a9a8fe6d87a5e59500e51"
repoRelativePath
:=
"foo/bar.git"
jsonParams
:=
fmt
.
Sprintf
(
`{"GitalyServer":{"Address":"%s","Token":""},"
TreeEntryRequest":{"repository":{"storage_name":"%s","relative_path":"%s"},"revision":"%s","path":"%s"
}}`
,
gitalyAddress
,
repoStorage
,
repoRelativePath
,
revisionEncoded
,
pathEncode
d
)
jsonParams
:=
fmt
.
Sprintf
(
`{"GitalyServer":{"Address":"%s","Token":""},"
GetBlobRequest":{"repository":{"storage_name":"%s","relative_path":"%s"},"oid":"%s","limit":-1
}}`
,
gitalyAddress
,
repoStorage
,
repoRelativePath
,
oi
d
)
resp
,
_
,
err
:=
doSendDataRequest
(
"/something"
,
"git-blob"
,
jsonParams
)
require
.
NoError
(
t
,
err
)
...
...
@@ -397,7 +394,7 @@ func startGitalyServer(t *testing.T, finalMessageCode codes.Code) (*combinedServ
gitalyServer
:=
testhelper
.
NewGitalyServer
(
finalMessageCode
)
pb
.
RegisterSmartHTTPServer
(
server
,
gitalyServer
)
pb
.
Register
Commit
Server
(
server
,
gitalyServer
)
pb
.
Register
BlobService
Server
(
server
,
gitalyServer
)
go
server
.
Serve
(
listener
)
...
...
internal/git/blob.go
View file @
9136ca98
...
...
@@ -16,10 +16,10 @@ import (
type
blob
struct
{
senddata
.
Prefix
}
type
blobParams
struct
{
RepoPath
string
BlobId
string
GitalyServer
gitaly
.
Server
TreeEntryRequest
pb
.
TreeEntry
Request
RepoPath
string
BlobId
string
GitalyServer
gitaly
.
Server
GetBlobRequest
pb
.
GetBlob
Request
}
var
SendBlob
=
&
blob
{
"git-blob:"
}
...
...
@@ -39,13 +39,13 @@ func (b *blob) Inject(w http.ResponseWriter, r *http.Request, sendData string) {
}
func
handleSendBlobWithGitaly
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
,
params
*
blobParams
)
{
commitClient
,
err
:=
gitaly
.
NewCommit
Client
(
params
.
GitalyServer
)
blobClient
,
err
:=
gitaly
.
NewBlob
Client
(
params
.
GitalyServer
)
if
err
!=
nil
{
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"
commit
.GetBlob: %v"
,
err
))
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"
blob
.GetBlob: %v"
,
err
))
}
if
err
:=
commitClient
.
SendBlob
(
r
.
Context
(),
w
,
&
params
.
TreeEntry
Request
);
err
!=
nil
{
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"
commit
.GetBlob: %v"
,
err
))
if
err
:=
blobClient
.
SendBlob
(
r
.
Context
(),
w
,
&
params
.
GetBlob
Request
);
err
!=
nil
{
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"
blob
.GetBlob: %v"
,
err
))
}
}
...
...
internal/gitaly/
commit
.go
→
internal/gitaly/
blob
.go
View file @
9136ca98
...
...
@@ -11,12 +11,12 @@ import (
"gitlab.com/gitlab-org/gitaly/streamio"
)
type
Commit
Client
struct
{
pb
.
Commit
Client
type
Blob
Client
struct
{
pb
.
BlobService
Client
}
func
(
client
*
CommitClient
)
SendBlob
(
ctx
context
.
Context
,
w
http
.
ResponseWriter
,
request
*
pb
.
TreeEntry
Request
)
error
{
c
,
err
:=
client
.
TreeEntry
(
ctx
,
request
)
func
(
client
*
BlobClient
)
SendBlob
(
ctx
context
.
Context
,
w
http
.
ResponseWriter
,
request
*
pb
.
GetBlob
Request
)
error
{
c
,
err
:=
client
.
GetBlob
(
ctx
,
request
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"rpc failed: %v"
,
err
)
}
...
...
internal/gitaly/gitaly.go
View file @
9136ca98
...
...
@@ -36,13 +36,13 @@ func NewSmartHTTPClient(server Server) (*SmartHTTPClient, error) {
return
&
SmartHTTPClient
{
grpcClient
},
nil
}
func
New
CommitClient
(
server
Server
)
(
*
Commit
Client
,
error
)
{
func
New
BlobClient
(
server
Server
)
(
*
Blob
Client
,
error
)
{
conn
,
err
:=
getOrCreateConnection
(
server
)
if
err
!=
nil
{
return
nil
,
err
}
grpcClient
:=
pb
.
New
Commit
Client
(
conn
)
return
&
Commit
Client
{
grpcClient
},
nil
grpcClient
:=
pb
.
New
BlobService
Client
(
conn
)
return
&
Blob
Client
{
grpcClient
},
nil
}
func
getOrCreateConnection
(
server
Server
)
(
*
grpc
.
ClientConn
,
error
)
{
...
...
internal/testhelper/gitaly.go
View file @
9136ca98
...
...
@@ -23,7 +23,7 @@ type GitalyTestServer struct {
var
(
GitalyInfoRefsResponseMock
=
strings
.
Repeat
(
"Mock Gitaly InfoRefsResponse data"
,
100000
)
Gitaly
TreeEntryResponseMock
=
strings
.
Repeat
(
"Mock Gitaly TreeEntry
Response data"
,
100000
)
Gitaly
GetBlobResponseMock
=
strings
.
Repeat
(
"Mock Gitaly GetBlob
Response data"
,
100000
)
GitalyReceivePackResponseMock
[]
byte
GitalyUploadPackResponseMock
[]
byte
)
...
...
@@ -173,7 +173,7 @@ func (s *GitalyTestServer) CommitIsAncestor(ctx context.Context, in *pb.CommitIs
return
nil
,
nil
}
func
(
s
*
GitalyTestServer
)
TreeEntry
(
in
*
pb
.
TreeEntryRequest
,
stream
pb
.
Commit_TreeEntry
Server
)
error
{
func
(
s
*
GitalyTestServer
)
GetBlob
(
in
*
pb
.
GetBlobRequest
,
stream
pb
.
BlobService_GetBlob
Server
)
error
{
s
.
WaitGroup
.
Add
(
1
)
defer
s
.
WaitGroup
.
Done
()
...
...
@@ -181,13 +181,11 @@ func (s *GitalyTestServer) TreeEntry(in *pb.TreeEntryRequest, stream pb.Commit_T
return
err
}
response
:=
&
pb
.
TreeEntryResponse
{
Type
:
pb
.
TreeEntryResponse_BLOB
,
Oid
:
"deadfacedeadfacedeadfacedeadfacedeadface"
,
Size
:
int64
(
len
(
GitalyTreeEntryResponseMock
)),
Mode
:
0100644
,
response
:=
&
pb
.
GetBlobResponse
{
Oid
:
in
.
GetOid
(),
Size
:
int64
(
len
(
GitalyGetBlobResponseMock
)),
}
nSends
,
err
:=
sendBytes
([]
byte
(
Gitaly
TreeEntry
ResponseMock
),
100
,
func
(
p
[]
byte
)
error
{
nSends
,
err
:=
sendBytes
([]
byte
(
Gitaly
GetBlob
ResponseMock
),
100
,
func
(
p
[]
byte
)
error
{
response
.
Data
=
p
if
err
:=
stream
.
Send
(
response
);
err
!=
nil
{
...
...
@@ -195,7 +193,7 @@ func (s *GitalyTestServer) TreeEntry(in *pb.TreeEntryRequest, stream pb.Commit_T
}
// Use a new response so we don't send other fields (Size, ...) over and over
response
=
&
pb
.
TreeEntry
Response
{}
response
=
&
pb
.
GetBlob
Response
{}
return
nil
})
...
...
vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION
View file @
9136ca98
0.
9
.0
0.
15
.0
vendor/gitlab.com/gitlab-org/gitaly-proto/go/blob.pb.go
0 → 100644
View file @
9136ca98
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: blob.proto
/*
Package gitaly is a generated protocol buffer package.
It is generated from these files:
blob.proto
commit.proto
deprecated-services.proto
diff.proto
notifications.proto
ref.proto
repository-service.proto
shared.proto
smarthttp.proto
ssh.proto
It has these top-level messages:
GetBlobRequest
GetBlobResponse
CommitIsAncestorRequest
CommitIsAncestorResponse
TreeEntryRequest
TreeEntryResponse
CommitsBetweenRequest
CommitsBetweenResponse
CountCommitsRequest
CountCommitsResponse
TreeEntry
GetTreeEntriesRequest
GetTreeEntriesResponse
CommitDiffRequest
CommitDiffResponse
CommitDeltaRequest
CommitDelta
CommitDeltaResponse
PostReceiveRequest
PostReceiveResponse
FindDefaultBranchNameRequest
FindDefaultBranchNameResponse
FindAllBranchNamesRequest
FindAllBranchNamesResponse
FindAllTagNamesRequest
FindAllTagNamesResponse
FindRefNameRequest
FindRefNameResponse
FindLocalBranchesRequest
FindLocalBranchesResponse
FindLocalBranchResponse
FindLocalBranchCommitAuthor
RepositoryExistsRequest
RepositoryExistsResponse
Repository
GitCommit
CommitAuthor
ExitStatus
InfoRefsRequest
InfoRefsResponse
PostUploadPackRequest
PostUploadPackResponse
PostReceivePackRequest
PostReceivePackResponse
SSHUploadPackRequest
SSHUploadPackResponse
SSHReceivePackRequest
SSHReceivePackResponse
*/
package
gitaly
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
context
"golang.org/x/net/context"
grpc
"google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// 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
type
GetBlobRequest
struct
{
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
// Object ID (SHA1) of the blob we want to get
Oid
string
`protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"`
// Maximum number of bytes we want to receive. Use '-1' to get the full blob no matter how big.
Limit
int64
`protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
}
func
(
m
*
GetBlobRequest
)
Reset
()
{
*
m
=
GetBlobRequest
{}
}
func
(
m
*
GetBlobRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetBlobRequest
)
ProtoMessage
()
{}
func
(
*
GetBlobRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
0
}
}
func
(
m
*
GetBlobRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
return
m
.
Repository
}
return
nil
}
func
(
m
*
GetBlobRequest
)
GetOid
()
string
{
if
m
!=
nil
{
return
m
.
Oid
}
return
""
}
func
(
m
*
GetBlobRequest
)
GetLimit
()
int64
{
if
m
!=
nil
{
return
m
.
Limit
}
return
0
}
type
GetBlobResponse
struct
{
// Blob size; present only in first response message
Size
int64
`protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
// Chunk of blob data
Data
[]
byte
`protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// Object ID of the actual blob returned. Empty if no blob was found.
Oid
string
`protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"`
}
func
(
m
*
GetBlobResponse
)
Reset
()
{
*
m
=
GetBlobResponse
{}
}
func
(
m
*
GetBlobResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetBlobResponse
)
ProtoMessage
()
{}
func
(
*
GetBlobResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
1
}
}
func
(
m
*
GetBlobResponse
)
GetSize
()
int64
{
if
m
!=
nil
{
return
m
.
Size
}
return
0
}
func
(
m
*
GetBlobResponse
)
GetData
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Data
}
return
nil
}
func
(
m
*
GetBlobResponse
)
GetOid
()
string
{
if
m
!=
nil
{
return
m
.
Oid
}
return
""
}
func
init
()
{
proto
.
RegisterType
((
*
GetBlobRequest
)(
nil
),
"gitaly.GetBlobRequest"
)
proto
.
RegisterType
((
*
GetBlobResponse
)(
nil
),
"gitaly.GetBlobResponse"
)
}
// Reference imports to suppress errors if they are not otherwise used.
var
_
context
.
Context
var
_
grpc
.
ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for BlobService service
type
BlobServiceClient
interface
{
// GetBlob returns the contents of a blob object referenced by its object
// ID. We use a stream to return a chunked arbitrarily large binary
// response
GetBlob
(
ctx
context
.
Context
,
in
*
GetBlobRequest
,
opts
...
grpc
.
CallOption
)
(
BlobService_GetBlobClient
,
error
)
}
type
blobServiceClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewBlobServiceClient
(
cc
*
grpc
.
ClientConn
)
BlobServiceClient
{
return
&
blobServiceClient
{
cc
}
}
func
(
c
*
blobServiceClient
)
GetBlob
(
ctx
context
.
Context
,
in
*
GetBlobRequest
,
opts
...
grpc
.
CallOption
)
(
BlobService_GetBlobClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_BlobService_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.BlobService/GetBlob"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
blobServiceGetBlobClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
BlobService_GetBlobClient
interface
{
Recv
()
(
*
GetBlobResponse
,
error
)
grpc
.
ClientStream
}
type
blobServiceGetBlobClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
blobServiceGetBlobClient
)
Recv
()
(
*
GetBlobResponse
,
error
)
{
m
:=
new
(
GetBlobResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
// Server API for BlobService service
type
BlobServiceServer
interface
{
// GetBlob returns the contents of a blob object referenced by its object
// ID. We use a stream to return a chunked arbitrarily large binary
// response
GetBlob
(
*
GetBlobRequest
,
BlobService_GetBlobServer
)
error
}
func
RegisterBlobServiceServer
(
s
*
grpc
.
Server
,
srv
BlobServiceServer
)
{
s
.
RegisterService
(
&
_BlobService_serviceDesc
,
srv
)
}
func
_BlobService_GetBlob_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
GetBlobRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
BlobServiceServer
)
.
GetBlob
(
m
,
&
blobServiceGetBlobServer
{
stream
})
}
type
BlobService_GetBlobServer
interface
{
Send
(
*
GetBlobResponse
)
error
grpc
.
ServerStream
}
type
blobServiceGetBlobServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
blobServiceGetBlobServer
)
Send
(
m
*
GetBlobResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_BlobService_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.BlobService"
,
HandlerType
:
(
*
BlobServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"GetBlob"
,
Handler
:
_BlobService_GetBlob_Handler
,
ServerStreams
:
true
,
},
},
Metadata
:
"blob.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"blob.proto"
,
fileDescriptor0
)
}
var
fileDescriptor0
=
[]
byte
{
// 217 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x64
,
0x90
,
0x31
,
0x4b
,
0xc7
,
0x30
,
0x10
,
0xc5
,
0x8d
,
0xd1
,
0xbf
,
0x78
,
0x2d
,
0x2a
,
0x87
,
0x68
,
0xe9
,
0x54
,
0x3a
,
0x75
,
0x2a
,
0x52
,
0x77
,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ef
,
0x68
,
0xf5
,
0xe5
,
0x3f
,
0x3f
,
0x97
,
0x68
,
0xf7
,
0xae
,
0x84
,
0xd9
,
0xa5
,
0x85
,
0x5c
,
0x7f
,
0x07
,
0x00
,
0x00
,
0xff
,
0xff
,
0xab
,
0x77
,
0x1a
,
0x6d
,
0x34
,
0x01
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go
View file @
9136ca98
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: commit.proto
/*
Package gitaly is a generated protocol buffer package.
It is generated from these files:
commit.proto
diff.proto
notifications.proto
ref.proto
shared.proto
smarthttp.proto
ssh.proto
It has these top-level messages:
CommitIsAncestorRequest
CommitIsAncestorResponse
TreeEntryRequest
TreeEntryResponse
CommitDiffRequest
CommitDiffResponse
CommitDeltaRequest
CommitDelta
CommitDeltaResponse
PostReceiveRequest
PostReceiveResponse
FindDefaultBranchNameRequest
FindDefaultBranchNameResponse
FindAllBranchNamesRequest
FindAllBranchNamesResponse
FindAllTagNamesRequest
FindAllTagNamesResponse
FindRefNameRequest
FindRefNameResponse
FindLocalBranchesRequest
FindLocalBranchesResponse
FindLocalBranchResponse
FindLocalBranchCommitAuthor
Repository
ExitStatus
InfoRefsRequest
InfoRefsResponse
PostUploadPackRequest
PostUploadPackResponse
PostReceivePackRequest
PostReceivePackResponse
SSHUploadPackRequest
SSHUploadPackResponse
SSHReceivePackRequest
SSHReceivePackResponse
*/
package
gitaly
import
proto
"github.com/golang/protobuf/proto"
...
...
@@ -66,12 +17,6 @@ var _ = proto.Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// 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
type
TreeEntryResponse_ObjectType
int32
const
(
...
...
@@ -98,9 +43,33 @@ func (x TreeEntryResponse_ObjectType) String() string {
return
proto
.
EnumName
(
TreeEntryResponse_ObjectType_name
,
int32
(
x
))
}
func
(
TreeEntryResponse_ObjectType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
0
,
[]
int
{
3
,
0
}
return
fileDescriptor
1
,
[]
int
{
3
,
0
}
}
type
TreeEntry_EntryType
int32
const
(
TreeEntry_BLOB
TreeEntry_EntryType
=
0
TreeEntry_TREE
TreeEntry_EntryType
=
1
TreeEntry_COMMIT
TreeEntry_EntryType
=
3
)
var
TreeEntry_EntryType_name
=
map
[
int32
]
string
{
0
:
"BLOB"
,
1
:
"TREE"
,
3
:
"COMMIT"
,
}
var
TreeEntry_EntryType_value
=
map
[
string
]
int32
{
"BLOB"
:
0
,
"TREE"
:
1
,
"COMMIT"
:
3
,
}
func
(
x
TreeEntry_EntryType
)
String
()
string
{
return
proto
.
EnumName
(
TreeEntry_EntryType_name
,
int32
(
x
))
}
func
(
TreeEntry_EntryType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
8
,
0
}
}
type
CommitIsAncestorRequest
struct
{
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
AncestorId
string
`protobuf:"bytes,2,opt,name=ancestor_id,json=ancestorId" json:"ancestor_id,omitempty"`
...
...
@@ -110,7 +79,7 @@ type CommitIsAncestorRequest struct {
func
(
m
*
CommitIsAncestorRequest
)
Reset
()
{
*
m
=
CommitIsAncestorRequest
{}
}
func
(
m
*
CommitIsAncestorRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitIsAncestorRequest
)
ProtoMessage
()
{}
func
(
*
CommitIsAncestorRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
0
,
[]
int
{
0
}
}
func
(
*
CommitIsAncestorRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
0
}
}
func
(
m
*
CommitIsAncestorRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -140,7 +109,7 @@ type CommitIsAncestorResponse struct {
func
(
m
*
CommitIsAncestorResponse
)
Reset
()
{
*
m
=
CommitIsAncestorResponse
{}
}
func
(
m
*
CommitIsAncestorResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitIsAncestorResponse
)
ProtoMessage
()
{}
func
(
*
CommitIsAncestorResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
0
,
[]
int
{
1
}
}
func
(
*
CommitIsAncestorResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
1
}
}
func
(
m
*
CommitIsAncestorResponse
)
GetValue
()
bool
{
if
m
!=
nil
{
...
...
@@ -151,15 +120,17 @@ func (m *CommitIsAncestorResponse) GetValue() bool {
type
TreeEntryRequest
struct
{
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Revision
[]
byte
`protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
Path
[]
byte
`protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Limit
int64
`protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"`
// commit ID or refname
Revision
[]
byte
`protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
// entry path relative to repository root
Path
[]
byte
`protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Limit
int64
`protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"`
}
func
(
m
*
TreeEntryRequest
)
Reset
()
{
*
m
=
TreeEntryRequest
{}
}
func
(
m
*
TreeEntryRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TreeEntryRequest
)
ProtoMessage
()
{}
func
(
*
TreeEntryRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
0
,
[]
int
{
2
}
}
func
(
*
TreeEntryRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
2
}
}
func
(
m
*
TreeEntryRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -191,16 +162,19 @@ func (m *TreeEntryRequest) GetLimit() int64 {
type
TreeEntryResponse
struct
{
Type
TreeEntryResponse_ObjectType
`protobuf:"varint,1,opt,name=type,enum=gitaly.TreeEntryResponse_ObjectType" json:"type,omitempty"`
Oid
string
`protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"`
Size
int64
`protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
Mode
int32
`protobuf:"varint,4,opt,name=mode" json:"mode,omitempty"`
Data
[]
byte
`protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
// SHA1 object ID
Oid
string
`protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"`
Size
int64
`protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
// file mode
Mode
int32
`protobuf:"varint,4,opt,name=mode" json:"mode,omitempty"`
// raw object contents
Data
[]
byte
`protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
}
func
(
m
*
TreeEntryResponse
)
Reset
()
{
*
m
=
TreeEntryResponse
{}
}
func
(
m
*
TreeEntryResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TreeEntryResponse
)
ProtoMessage
()
{}
func
(
*
TreeEntryResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
0
,
[]
int
{
3
}
}
func
(
*
TreeEntryResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
3
}
}
func
(
m
*
TreeEntryResponse
)
GetType
()
TreeEntryResponse_ObjectType
{
if
m
!=
nil
{
...
...
@@ -237,12 +211,217 @@ func (m *TreeEntryResponse) GetData() []byte {
return
nil
}
type
CommitsBetweenRequest
struct
{
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
From
[]
byte
`protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To
[]
byte
`protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
}
func
(
m
*
CommitsBetweenRequest
)
Reset
()
{
*
m
=
CommitsBetweenRequest
{}
}
func
(
m
*
CommitsBetweenRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitsBetweenRequest
)
ProtoMessage
()
{}
func
(
*
CommitsBetweenRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
4
}
}
func
(
m
*
CommitsBetweenRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
return
m
.
Repository
}
return
nil
}
func
(
m
*
CommitsBetweenRequest
)
GetFrom
()
[]
byte
{
if
m
!=
nil
{
return
m
.
From
}
return
nil
}
func
(
m
*
CommitsBetweenRequest
)
GetTo
()
[]
byte
{
if
m
!=
nil
{
return
m
.
To
}
return
nil
}
type
CommitsBetweenResponse
struct
{
Commits
[]
*
GitCommit
`protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"`
}
func
(
m
*
CommitsBetweenResponse
)
Reset
()
{
*
m
=
CommitsBetweenResponse
{}
}
func
(
m
*
CommitsBetweenResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitsBetweenResponse
)
ProtoMessage
()
{}
func
(
*
CommitsBetweenResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
5
}
}
func
(
m
*
CommitsBetweenResponse
)
GetCommits
()
[]
*
GitCommit
{
if
m
!=
nil
{
return
m
.
Commits
}
return
nil
}
type
CountCommitsRequest
struct
{
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Revision
[]
byte
`protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
}
func
(
m
*
CountCommitsRequest
)
Reset
()
{
*
m
=
CountCommitsRequest
{}
}
func
(
m
*
CountCommitsRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CountCommitsRequest
)
ProtoMessage
()
{}
func
(
*
CountCommitsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
6
}
}
func
(
m
*
CountCommitsRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
return
m
.
Repository
}
return
nil
}
func
(
m
*
CountCommitsRequest
)
GetRevision
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Revision
}
return
nil
}
type
CountCommitsResponse
struct
{
Count
int32
`protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func
(
m
*
CountCommitsResponse
)
Reset
()
{
*
m
=
CountCommitsResponse
{}
}
func
(
m
*
CountCommitsResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CountCommitsResponse
)
ProtoMessage
()
{}
func
(
*
CountCommitsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
7
}
}
func
(
m
*
CountCommitsResponse
)
GetCount
()
int32
{
if
m
!=
nil
{
return
m
.
Count
}
return
0
}
type
TreeEntry
struct
{
// OID of the object this tree entry points to
Oid
string
`protobuf:"bytes,1,opt,name=oid" json:"oid,omitempty"`
// OID of the tree attached to commit_oid
RootOid
string
`protobuf:"bytes,2,opt,name=root_oid,json=rootOid" json:"root_oid,omitempty"`
// Path relative to repository root
Path
[]
byte
`protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Type
TreeEntry_EntryType
`protobuf:"varint,4,opt,name=type,enum=gitaly.TreeEntry_EntryType" json:"type,omitempty"`
// File mode e.g. 0644
Mode
int32
`protobuf:"varint,5,opt,name=mode" json:"mode,omitempty"`
// The commit object via which this entry was retrieved
CommitOid
string
`protobuf:"bytes,6,opt,name=commit_oid,json=commitOid" json:"commit_oid,omitempty"`
}
func
(
m
*
TreeEntry
)
Reset
()
{
*
m
=
TreeEntry
{}
}
func
(
m
*
TreeEntry
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TreeEntry
)
ProtoMessage
()
{}
func
(
*
TreeEntry
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
8
}
}
func
(
m
*
TreeEntry
)
GetOid
()
string
{
if
m
!=
nil
{
return
m
.
Oid
}
return
""
}
func
(
m
*
TreeEntry
)
GetRootOid
()
string
{
if
m
!=
nil
{
return
m
.
RootOid
}
return
""
}
func
(
m
*
TreeEntry
)
GetPath
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Path
}
return
nil
}
func
(
m
*
TreeEntry
)
GetType
()
TreeEntry_EntryType
{
if
m
!=
nil
{
return
m
.
Type
}
return
TreeEntry_BLOB
}
func
(
m
*
TreeEntry
)
GetMode
()
int32
{
if
m
!=
nil
{
return
m
.
Mode
}
return
0
}
func
(
m
*
TreeEntry
)
GetCommitOid
()
string
{
if
m
!=
nil
{
return
m
.
CommitOid
}
return
""
}
type
GetTreeEntriesRequest
struct
{
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Revision
[]
byte
`protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
Path
[]
byte
`protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
}
func
(
m
*
GetTreeEntriesRequest
)
Reset
()
{
*
m
=
GetTreeEntriesRequest
{}
}
func
(
m
*
GetTreeEntriesRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetTreeEntriesRequest
)
ProtoMessage
()
{}
func
(
*
GetTreeEntriesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
9
}
}
func
(
m
*
GetTreeEntriesRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
return
m
.
Repository
}
return
nil
}
func
(
m
*
GetTreeEntriesRequest
)
GetRevision
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Revision
}
return
nil
}
func
(
m
*
GetTreeEntriesRequest
)
GetPath
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Path
}
return
nil
}
type
GetTreeEntriesResponse
struct
{
Entries
[]
*
TreeEntry
`protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
}
func
(
m
*
GetTreeEntriesResponse
)
Reset
()
{
*
m
=
GetTreeEntriesResponse
{}
}
func
(
m
*
GetTreeEntriesResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetTreeEntriesResponse
)
ProtoMessage
()
{}
func
(
*
GetTreeEntriesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
10
}
}
func
(
m
*
GetTreeEntriesResponse
)
GetEntries
()
[]
*
TreeEntry
{
if
m
!=
nil
{
return
m
.
Entries
}
return
nil
}
func
init
()
{
proto
.
RegisterType
((
*
CommitIsAncestorRequest
)(
nil
),
"gitaly.CommitIsAncestorRequest"
)
proto
.
RegisterType
((
*
CommitIsAncestorResponse
)(
nil
),
"gitaly.CommitIsAncestorResponse"
)
proto
.
RegisterType
((
*
TreeEntryRequest
)(
nil
),
"gitaly.TreeEntryRequest"
)
proto
.
RegisterType
((
*
TreeEntryResponse
)(
nil
),
"gitaly.TreeEntryResponse"
)
proto
.
RegisterType
((
*
CommitsBetweenRequest
)(
nil
),
"gitaly.CommitsBetweenRequest"
)
proto
.
RegisterType
((
*
CommitsBetweenResponse
)(
nil
),
"gitaly.CommitsBetweenResponse"
)
proto
.
RegisterType
((
*
CountCommitsRequest
)(
nil
),
"gitaly.CountCommitsRequest"
)
proto
.
RegisterType
((
*
CountCommitsResponse
)(
nil
),
"gitaly.CountCommitsResponse"
)
proto
.
RegisterType
((
*
TreeEntry
)(
nil
),
"gitaly.TreeEntry"
)
proto
.
RegisterType
((
*
GetTreeEntriesRequest
)(
nil
),
"gitaly.GetTreeEntriesRequest"
)
proto
.
RegisterType
((
*
GetTreeEntriesResponse
)(
nil
),
"gitaly.GetTreeEntriesResponse"
)
proto
.
RegisterEnum
(
"gitaly.TreeEntryResponse_ObjectType"
,
TreeEntryResponse_ObjectType_name
,
TreeEntryResponse_ObjectType_value
)
proto
.
RegisterEnum
(
"gitaly.TreeEntry_EntryType"
,
TreeEntry_EntryType_name
,
TreeEntry_EntryType_value
)
}
// Reference imports to suppress errors if they are not otherwise used.
...
...
@@ -253,36 +432,39 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for Commit service
// Client API for Commit
Service
service
type
CommitClient
interface
{
type
Commit
Service
Client
interface
{
CommitIsAncestor
(
ctx
context
.
Context
,
in
*
CommitIsAncestorRequest
,
opts
...
grpc
.
CallOption
)
(
*
CommitIsAncestorResponse
,
error
)
TreeEntry
(
ctx
context
.
Context
,
in
*
TreeEntryRequest
,
opts
...
grpc
.
CallOption
)
(
Commit_TreeEntryClient
,
error
)
TreeEntry
(
ctx
context
.
Context
,
in
*
TreeEntryRequest
,
opts
...
grpc
.
CallOption
)
(
CommitService_TreeEntryClient
,
error
)
CommitsBetween
(
ctx
context
.
Context
,
in
*
CommitsBetweenRequest
,
opts
...
grpc
.
CallOption
)
(
CommitService_CommitsBetweenClient
,
error
)
CountCommits
(
ctx
context
.
Context
,
in
*
CountCommitsRequest
,
opts
...
grpc
.
CallOption
)
(
*
CountCommitsResponse
,
error
)
GetTreeEntries
(
ctx
context
.
Context
,
in
*
GetTreeEntriesRequest
,
opts
...
grpc
.
CallOption
)
(
CommitService_GetTreeEntriesClient
,
error
)
}
type
commitClient
struct
{
type
commit
Service
Client
struct
{
cc
*
grpc
.
ClientConn
}
func
NewCommit
Client
(
cc
*
grpc
.
ClientConn
)
Commit
Client
{
return
&
commitClient
{
cc
}
func
NewCommit
ServiceClient
(
cc
*
grpc
.
ClientConn
)
CommitService
Client
{
return
&
commit
Service
Client
{
cc
}
}
func
(
c
*
commitClient
)
CommitIsAncestor
(
ctx
context
.
Context
,
in
*
CommitIsAncestorRequest
,
opts
...
grpc
.
CallOption
)
(
*
CommitIsAncestorResponse
,
error
)
{
func
(
c
*
commit
Service
Client
)
CommitIsAncestor
(
ctx
context
.
Context
,
in
*
CommitIsAncestorRequest
,
opts
...
grpc
.
CallOption
)
(
*
CommitIsAncestorResponse
,
error
)
{
out
:=
new
(
CommitIsAncestorResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Commit/CommitIsAncestor"
,
in
,
out
,
c
.
cc
,
opts
...
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Commit
Service
/CommitIsAncestor"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
commit
Client
)
TreeEntry
(
ctx
context
.
Context
,
in
*
TreeEntryRequest
,
opts
...
grpc
.
CallOption
)
(
Commit
_TreeEntryClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Commit
_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.Commit
/TreeEntry"
,
opts
...
)
func
(
c
*
commit
ServiceClient
)
TreeEntry
(
ctx
context
.
Context
,
in
*
TreeEntryRequest
,
opts
...
grpc
.
CallOption
)
(
CommitService
_TreeEntryClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Commit
Service_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.CommitService
/TreeEntry"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
commitTreeEntryClient
{
stream
}
x
:=
&
commit
Service
TreeEntryClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -292,16 +474,16 @@ func (c *commitClient) TreeEntry(ctx context.Context, in *TreeEntryRequest, opts
return
x
,
nil
}
type
Commit_TreeEntryClient
interface
{
type
Commit
Service
_TreeEntryClient
interface
{
Recv
()
(
*
TreeEntryResponse
,
error
)
grpc
.
ClientStream
}
type
commitTreeEntryClient
struct
{
type
commit
Service
TreeEntryClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
commitTreeEntryClient
)
Recv
()
(
*
TreeEntryResponse
,
error
)
{
func
(
x
*
commit
Service
TreeEntryClient
)
Recv
()
(
*
TreeEntryResponse
,
error
)
{
m
:=
new
(
TreeEntryResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -309,103 +491,268 @@ func (x *commitTreeEntryClient) Recv() (*TreeEntryResponse, error) {
return
m
,
nil
}
// Server API for Commit service
func
(
c
*
commitServiceClient
)
CommitsBetween
(
ctx
context
.
Context
,
in
*
CommitsBetweenRequest
,
opts
...
grpc
.
CallOption
)
(
CommitService_CommitsBetweenClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_CommitService_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.CommitService/CommitsBetween"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
commitServiceCommitsBetweenClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
CommitService_CommitsBetweenClient
interface
{
Recv
()
(
*
CommitsBetweenResponse
,
error
)
grpc
.
ClientStream
}
type
commitServiceCommitsBetweenClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
commitServiceCommitsBetweenClient
)
Recv
()
(
*
CommitsBetweenResponse
,
error
)
{
m
:=
new
(
CommitsBetweenResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
commitServiceClient
)
CountCommits
(
ctx
context
.
Context
,
in
*
CountCommitsRequest
,
opts
...
grpc
.
CallOption
)
(
*
CountCommitsResponse
,
error
)
{
out
:=
new
(
CountCommitsResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.CommitService/CountCommits"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
commitServiceClient
)
GetTreeEntries
(
ctx
context
.
Context
,
in
*
GetTreeEntriesRequest
,
opts
...
grpc
.
CallOption
)
(
CommitService_GetTreeEntriesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_CommitService_serviceDesc
.
Streams
[
2
],
c
.
cc
,
"/gitaly.CommitService/GetTreeEntries"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
commitServiceGetTreeEntriesClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
CommitService_GetTreeEntriesClient
interface
{
Recv
()
(
*
GetTreeEntriesResponse
,
error
)
grpc
.
ClientStream
}
type
commitServiceGetTreeEntriesClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
commitServiceGetTreeEntriesClient
)
Recv
()
(
*
GetTreeEntriesResponse
,
error
)
{
m
:=
new
(
GetTreeEntriesResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
// Server API for CommitService service
type
CommitServer
interface
{
type
CommitServ
iceServ
er
interface
{
CommitIsAncestor
(
context
.
Context
,
*
CommitIsAncestorRequest
)
(
*
CommitIsAncestorResponse
,
error
)
TreeEntry
(
*
TreeEntryRequest
,
Commit_TreeEntryServer
)
error
TreeEntry
(
*
TreeEntryRequest
,
CommitService_TreeEntryServer
)
error
CommitsBetween
(
*
CommitsBetweenRequest
,
CommitService_CommitsBetweenServer
)
error
CountCommits
(
context
.
Context
,
*
CountCommitsRequest
)
(
*
CountCommitsResponse
,
error
)
GetTreeEntries
(
*
GetTreeEntriesRequest
,
CommitService_GetTreeEntriesServer
)
error
}
func
RegisterCommitServ
er
(
s
*
grpc
.
Server
,
srv
Commit
Server
)
{
s
.
RegisterService
(
&
_Commit_serviceDesc
,
srv
)
func
RegisterCommitServ
iceServer
(
s
*
grpc
.
Server
,
srv
CommitService
Server
)
{
s
.
RegisterService
(
&
_Commit
Service
_serviceDesc
,
srv
)
}
func
_Commit_CommitIsAncestor_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
func
_Commit
Service
_CommitIsAncestor_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
CommitIsAncestorRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
CommitServer
)
.
CommitIsAncestor
(
ctx
,
in
)
return
srv
.
(
CommitServ
iceServ
er
)
.
CommitIsAncestor
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Commit/CommitIsAncestor"
,
FullMethod
:
"/gitaly.Commit
Service
/CommitIsAncestor"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
CommitServer
)
.
CommitIsAncestor
(
ctx
,
req
.
(
*
CommitIsAncestorRequest
))
return
srv
.
(
CommitServ
iceServ
er
)
.
CommitIsAncestor
(
ctx
,
req
.
(
*
CommitIsAncestorRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_Commit_TreeEntry_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_Commit
Service
_TreeEntry_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
TreeEntryRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
CommitServ
er
)
.
TreeEntry
(
m
,
&
commit
TreeEntryServer
{
stream
})
return
srv
.
(
CommitServ
iceServer
)
.
TreeEntry
(
m
,
&
commitService
TreeEntryServer
{
stream
})
}
type
Commit_TreeEntryServer
interface
{
type
Commit
Service
_TreeEntryServer
interface
{
Send
(
*
TreeEntryResponse
)
error
grpc
.
ServerStream
}
type
commitTreeEntryServer
struct
{
type
commitServiceTreeEntryServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
commitServiceTreeEntryServer
)
Send
(
m
*
TreeEntryResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_CommitService_CommitsBetween_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
CommitsBetweenRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
CommitServiceServer
)
.
CommitsBetween
(
m
,
&
commitServiceCommitsBetweenServer
{
stream
})
}
type
CommitService_CommitsBetweenServer
interface
{
Send
(
*
CommitsBetweenResponse
)
error
grpc
.
ServerStream
}
type
commitServiceCommitsBetweenServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
commit
TreeEntryServer
)
Send
(
m
*
TreeEntry
Response
)
error
{
func
(
x
*
commit
ServiceCommitsBetweenServer
)
Send
(
m
*
CommitsBetween
Response
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_Commit_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Commit"
,
HandlerType
:
(
*
CommitServer
)(
nil
),
func
_CommitService_CountCommits_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
CountCommitsRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
CommitServiceServer
)
.
CountCommits
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.CommitService/CountCommits"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
CommitServiceServer
)
.
CountCommits
(
ctx
,
req
.
(
*
CountCommitsRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_CommitService_GetTreeEntries_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
GetTreeEntriesRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
CommitServiceServer
)
.
GetTreeEntries
(
m
,
&
commitServiceGetTreeEntriesServer
{
stream
})
}
type
CommitService_GetTreeEntriesServer
interface
{
Send
(
*
GetTreeEntriesResponse
)
error
grpc
.
ServerStream
}
type
commitServiceGetTreeEntriesServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
commitServiceGetTreeEntriesServer
)
Send
(
m
*
GetTreeEntriesResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_CommitService_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.CommitService"
,
HandlerType
:
(
*
CommitServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"CommitIsAncestor"
,
Handler
:
_Commit_CommitIsAncestor_Handler
,
Handler
:
_CommitService_CommitIsAncestor_Handler
,
},
{
MethodName
:
"CountCommits"
,
Handler
:
_CommitService_CountCommits_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"TreeEntry"
,
Handler
:
_Commit_TreeEntry_Handler
,
Handler
:
_CommitService_TreeEntry_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"CommitsBetween"
,
Handler
:
_CommitService_CommitsBetween_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"GetTreeEntries"
,
Handler
:
_CommitService_GetTreeEntries_Handler
,
ServerStreams
:
true
,
},
},
Metadata
:
"commit.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"commit.proto"
,
fileDescriptor0
)
}
var
fileDescriptor0
=
[]
byte
{
// 404 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xa4
,
0x92
,
0xc1
,
0x6a
,
0xdc
,
0x30
,
0x10
,
0x86
,
0x57
,
0xb1
,
0xd7
,
0x71
,
0x26
,
0xa6
,
0xb8
,
0x43
,
0xa1
,
0xce
,
0x5e
,
0x62
,
0x4c
,
0x0f
,
0x7b
,
0x32
,
0xc1
,
0xa5
,
0xd0
,
0x6b
,
0x92
,
0x2e
,
0xc5
,
0xd0
,
0xb0
,
0x20
,
0x0c
,
0x3d
,
0x16
,
0xc7
,
0x16
,
0x5d
,
0x15
,
0xdb
,
0x72
,
0x25
,
0x25
,
0xe0
,
0xbe
,
0x41
,
0xa1
,
0xef
,
0xd1
,
0xf7
,
0xe9
,
0x13
,
0x15
,
0x49
,
0x59
,
0x37
,
0x34
,
0xdd
,
0x53
,
0x6f
,
0xff
,
0xcc
,
0xfc
,
0x1e
,
0x7f
,
0xfa
,
0x25
,
0x88
,
0x1a
,
0xd1
,
0xf7
,
0x5c
,
0xe7
,
0xa3
,
0x14
,
0x5a
,
0x60
,
0xf0
,
0x99
,
0xeb
,
0xba
,
0x9b
,
0x56
,
0x91
,
0xda
,
0xd5
,
0x92
,
0xb5
,
0xae
,
0x9b
,
0x7d
,
0x27
,
0xf0
,
0xf2
,
0xda
,
0xda
,
0x4a
,
0x75
,
0x39
,
0x34
,
0x4c
,
0x69
,
0x21
,
0x29
,
0xfb
,
0x7a
,
0xc7
,
0x94
,
0xc6
,
0x02
,
0x40
,
0xb2
,
0x51
,
0x28
,
0xae
,
0x85
,
0x9c
,
0x12
,
0x92
,
0x92
,
0xf5
,
0x69
,
0x81
,
0xb9
,
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
,
0xcb
,
0x2c
,
0xca
,
0x92
,
0x5a
,
0x6d
,
0x7a
,
0x6d
,
0xad
,
0xeb
,
0x64
,
0xe9
,
0x98
,
0x8d
,
0xce
,
0xde
,
0x00
,
0xfc
,
0xf9
,
0x03
,
0x02
,
0x04
,
0xd7
,
0xdb
,
0x9b
,
0x9b
,
0xb2
,
0x8a
,
0x17
,
0x18
,
0x82
,
0x7f
,
0xf5
,
0x61
,
0x7b
,
0x15
,
0x13
,
0xa3
,
0x2a
,
0xba
,
0xd9
,
0xc4
,
0x47
,
0x78
,
0x0c
,
0x5e
,
0x75
,
0xf9
,
0x3e
,
0xf6
,
0x8a
,
0x9f
,
0x04
,
0x02
,
0x77
,
0x2d
,
0xf8
,
0x11
,
0xe2
,
0xbf
,
0x2f
,
0x08
,
0xcf
,
0xf7
,
0xe7
,
0x39
,
0xf0
,
0x8a
,
0x56
,
0xe9
,
0x61
,
0x83
,
0x3b
,
0x77
,
0xb6
,
0xc0
,
0x77
,
0x70
,
0x32
,
0xc7
,
0x81
,
0xc9
,
0x3f
,
0x12
,
0x72
,
0xab
,
0xce
,
0x0e
,
0x66
,
0x97
,
0x2d
,
0x2e
,
0xc8
,
0x6d
,
0x60
,
0x9f
,
0xf4
,
0xeb
,
0xdf
,
0x01
,
0x00
,
0x00
,
0xff
,
0xff
,
0xa2
,
0xe6
,
0x0b
,
0xac
,
0xf8
,
0x02
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"commit.proto"
,
fileDescriptor1
)
}
var
fileDescriptor1
=
[]
byte
{
// 656 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xbc
,
0x55
,
0xdb
,
0x6e
,
0x13
,
0x3d
,
0x10
,
0x8e
,
0xb3
,
0x39
,
0x4e
,
0xf3
,
0x47
,
0x5b
,
0xff
,
0x2d
,
0x6c
,
0x53
,
0x4a
,
0x23
,
0x8b
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0xe7
,
0x06
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/deprecated-services.pb.go
0 → 100644
View file @
9136ca98
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: deprecated-services.proto
package
gitaly
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
context
"golang.org/x/net/context"
grpc
"google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// Reference imports to suppress errors if they are not otherwise used.
var
_
context
.
Context
var
_
grpc
.
ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for Commit service
type
CommitClient
interface
{
CommitIsAncestor
(
ctx
context
.
Context
,
in
*
CommitIsAncestorRequest
,
opts
...
grpc
.
CallOption
)
(
*
CommitIsAncestorResponse
,
error
)
TreeEntry
(
ctx
context
.
Context
,
in
*
TreeEntryRequest
,
opts
...
grpc
.
CallOption
)
(
Commit_TreeEntryClient
,
error
)
}
type
commitClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewCommitClient
(
cc
*
grpc
.
ClientConn
)
CommitClient
{
return
&
commitClient
{
cc
}
}
func
(
c
*
commitClient
)
CommitIsAncestor
(
ctx
context
.
Context
,
in
*
CommitIsAncestorRequest
,
opts
...
grpc
.
CallOption
)
(
*
CommitIsAncestorResponse
,
error
)
{
out
:=
new
(
CommitIsAncestorResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Commit/CommitIsAncestor"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
commitClient
)
TreeEntry
(
ctx
context
.
Context
,
in
*
TreeEntryRequest
,
opts
...
grpc
.
CallOption
)
(
Commit_TreeEntryClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Commit_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.Commit/TreeEntry"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
commitTreeEntryClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
Commit_TreeEntryClient
interface
{
Recv
()
(
*
TreeEntryResponse
,
error
)
grpc
.
ClientStream
}
type
commitTreeEntryClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
commitTreeEntryClient
)
Recv
()
(
*
TreeEntryResponse
,
error
)
{
m
:=
new
(
TreeEntryResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
// Server API for Commit service
type
CommitServer
interface
{
CommitIsAncestor
(
context
.
Context
,
*
CommitIsAncestorRequest
)
(
*
CommitIsAncestorResponse
,
error
)
TreeEntry
(
*
TreeEntryRequest
,
Commit_TreeEntryServer
)
error
}
func
RegisterCommitServer
(
s
*
grpc
.
Server
,
srv
CommitServer
)
{
s
.
RegisterService
(
&
_Commit_serviceDesc
,
srv
)
}
func
_Commit_CommitIsAncestor_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
CommitIsAncestorRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
CommitServer
)
.
CommitIsAncestor
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Commit/CommitIsAncestor"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
CommitServer
)
.
CommitIsAncestor
(
ctx
,
req
.
(
*
CommitIsAncestorRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_Commit_TreeEntry_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
TreeEntryRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
CommitServer
)
.
TreeEntry
(
m
,
&
commitTreeEntryServer
{
stream
})
}
type
Commit_TreeEntryServer
interface
{
Send
(
*
TreeEntryResponse
)
error
grpc
.
ServerStream
}
type
commitTreeEntryServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
commitTreeEntryServer
)
Send
(
m
*
TreeEntryResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_Commit_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Commit"
,
HandlerType
:
(
*
CommitServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"CommitIsAncestor"
,
Handler
:
_Commit_CommitIsAncestor_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"TreeEntry"
,
Handler
:
_Commit_TreeEntry_Handler
,
ServerStreams
:
true
,
},
},
Metadata
:
"deprecated-services.proto"
,
}
// Client API for Diff service
type
DiffClient
interface
{
// Returns stream of CommitDiffResponse with patches chunked over messages
CommitDiff
(
ctx
context
.
Context
,
in
*
CommitDiffRequest
,
opts
...
grpc
.
CallOption
)
(
Diff_CommitDiffClient
,
error
)
// Return a stream so we can divide the response in chunks of deltas
CommitDelta
(
ctx
context
.
Context
,
in
*
CommitDeltaRequest
,
opts
...
grpc
.
CallOption
)
(
Diff_CommitDeltaClient
,
error
)
}
type
diffClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewDiffClient
(
cc
*
grpc
.
ClientConn
)
DiffClient
{
return
&
diffClient
{
cc
}
}
func
(
c
*
diffClient
)
CommitDiff
(
ctx
context
.
Context
,
in
*
CommitDiffRequest
,
opts
...
grpc
.
CallOption
)
(
Diff_CommitDiffClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Diff_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.Diff/CommitDiff"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
diffCommitDiffClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
Diff_CommitDiffClient
interface
{
Recv
()
(
*
CommitDiffResponse
,
error
)
grpc
.
ClientStream
}
type
diffCommitDiffClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
diffCommitDiffClient
)
Recv
()
(
*
CommitDiffResponse
,
error
)
{
m
:=
new
(
CommitDiffResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
diffClient
)
CommitDelta
(
ctx
context
.
Context
,
in
*
CommitDeltaRequest
,
opts
...
grpc
.
CallOption
)
(
Diff_CommitDeltaClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Diff_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.Diff/CommitDelta"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
diffCommitDeltaClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
Diff_CommitDeltaClient
interface
{
Recv
()
(
*
CommitDeltaResponse
,
error
)
grpc
.
ClientStream
}
type
diffCommitDeltaClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
diffCommitDeltaClient
)
Recv
()
(
*
CommitDeltaResponse
,
error
)
{
m
:=
new
(
CommitDeltaResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
// Server API for Diff service
type
DiffServer
interface
{
// Returns stream of CommitDiffResponse with patches chunked over messages
CommitDiff
(
*
CommitDiffRequest
,
Diff_CommitDiffServer
)
error
// Return a stream so we can divide the response in chunks of deltas
CommitDelta
(
*
CommitDeltaRequest
,
Diff_CommitDeltaServer
)
error
}
func
RegisterDiffServer
(
s
*
grpc
.
Server
,
srv
DiffServer
)
{
s
.
RegisterService
(
&
_Diff_serviceDesc
,
srv
)
}
func
_Diff_CommitDiff_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
CommitDiffRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
DiffServer
)
.
CommitDiff
(
m
,
&
diffCommitDiffServer
{
stream
})
}
type
Diff_CommitDiffServer
interface
{
Send
(
*
CommitDiffResponse
)
error
grpc
.
ServerStream
}
type
diffCommitDiffServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
diffCommitDiffServer
)
Send
(
m
*
CommitDiffResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_Diff_CommitDelta_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
CommitDeltaRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
DiffServer
)
.
CommitDelta
(
m
,
&
diffCommitDeltaServer
{
stream
})
}
type
Diff_CommitDeltaServer
interface
{
Send
(
*
CommitDeltaResponse
)
error
grpc
.
ServerStream
}
type
diffCommitDeltaServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
diffCommitDeltaServer
)
Send
(
m
*
CommitDeltaResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_Diff_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Diff"
,
HandlerType
:
(
*
DiffServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"CommitDiff"
,
Handler
:
_Diff_CommitDiff_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"CommitDelta"
,
Handler
:
_Diff_CommitDelta_Handler
,
ServerStreams
:
true
,
},
},
Metadata
:
"deprecated-services.proto"
,
}
// Client API for Notifications service
type
NotificationsClient
interface
{
PostReceive
(
ctx
context
.
Context
,
in
*
PostReceiveRequest
,
opts
...
grpc
.
CallOption
)
(
*
PostReceiveResponse
,
error
)
}
type
notificationsClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewNotificationsClient
(
cc
*
grpc
.
ClientConn
)
NotificationsClient
{
return
&
notificationsClient
{
cc
}
}
func
(
c
*
notificationsClient
)
PostReceive
(
ctx
context
.
Context
,
in
*
PostReceiveRequest
,
opts
...
grpc
.
CallOption
)
(
*
PostReceiveResponse
,
error
)
{
out
:=
new
(
PostReceiveResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Notifications/PostReceive"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
// Server API for Notifications service
type
NotificationsServer
interface
{
PostReceive
(
context
.
Context
,
*
PostReceiveRequest
)
(
*
PostReceiveResponse
,
error
)
}
func
RegisterNotificationsServer
(
s
*
grpc
.
Server
,
srv
NotificationsServer
)
{
s
.
RegisterService
(
&
_Notifications_serviceDesc
,
srv
)
}
func
_Notifications_PostReceive_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
PostReceiveRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
NotificationsServer
)
.
PostReceive
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Notifications/PostReceive"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
NotificationsServer
)
.
PostReceive
(
ctx
,
req
.
(
*
PostReceiveRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
var
_Notifications_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Notifications"
,
HandlerType
:
(
*
NotificationsServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"PostReceive"
,
Handler
:
_Notifications_PostReceive_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"deprecated-services.proto"
,
}
// Client API for Ref service
type
RefClient
interface
{
FindDefaultBranchName
(
ctx
context
.
Context
,
in
*
FindDefaultBranchNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindDefaultBranchNameResponse
,
error
)
FindAllBranchNames
(
ctx
context
.
Context
,
in
*
FindAllBranchNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindAllBranchNamesClient
,
error
)
FindAllTagNames
(
ctx
context
.
Context
,
in
*
FindAllTagNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindAllTagNamesClient
,
error
)
// Find a Ref matching the given constraints. Response may be empty.
FindRefName
(
ctx
context
.
Context
,
in
*
FindRefNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindRefNameResponse
,
error
)
// Return a stream so we can divide the response in chunks of branches
FindLocalBranches
(
ctx
context
.
Context
,
in
*
FindLocalBranchesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindLocalBranchesClient
,
error
)
}
type
refClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewRefClient
(
cc
*
grpc
.
ClientConn
)
RefClient
{
return
&
refClient
{
cc
}
}
func
(
c
*
refClient
)
FindDefaultBranchName
(
ctx
context
.
Context
,
in
*
FindDefaultBranchNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindDefaultBranchNameResponse
,
error
)
{
out
:=
new
(
FindDefaultBranchNameResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Ref/FindDefaultBranchName"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
refClient
)
FindAllBranchNames
(
ctx
context
.
Context
,
in
*
FindAllBranchNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindAllBranchNamesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.Ref/FindAllBranchNames"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
refFindAllBranchNamesClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
Ref_FindAllBranchNamesClient
interface
{
Recv
()
(
*
FindAllBranchNamesResponse
,
error
)
grpc
.
ClientStream
}
type
refFindAllBranchNamesClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
refFindAllBranchNamesClient
)
Recv
()
(
*
FindAllBranchNamesResponse
,
error
)
{
m
:=
new
(
FindAllBranchNamesResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
refClient
)
FindAllTagNames
(
ctx
context
.
Context
,
in
*
FindAllTagNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindAllTagNamesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.Ref/FindAllTagNames"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
refFindAllTagNamesClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
Ref_FindAllTagNamesClient
interface
{
Recv
()
(
*
FindAllTagNamesResponse
,
error
)
grpc
.
ClientStream
}
type
refFindAllTagNamesClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
refFindAllTagNamesClient
)
Recv
()
(
*
FindAllTagNamesResponse
,
error
)
{
m
:=
new
(
FindAllTagNamesResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
refClient
)
FindRefName
(
ctx
context
.
Context
,
in
*
FindRefNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindRefNameResponse
,
error
)
{
out
:=
new
(
FindRefNameResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Ref/FindRefName"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
refClient
)
FindLocalBranches
(
ctx
context
.
Context
,
in
*
FindLocalBranchesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindLocalBranchesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref_serviceDesc
.
Streams
[
2
],
c
.
cc
,
"/gitaly.Ref/FindLocalBranches"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
refFindLocalBranchesClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
Ref_FindLocalBranchesClient
interface
{
Recv
()
(
*
FindLocalBranchesResponse
,
error
)
grpc
.
ClientStream
}
type
refFindLocalBranchesClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
refFindLocalBranchesClient
)
Recv
()
(
*
FindLocalBranchesResponse
,
error
)
{
m
:=
new
(
FindLocalBranchesResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
// Server API for Ref service
type
RefServer
interface
{
FindDefaultBranchName
(
context
.
Context
,
*
FindDefaultBranchNameRequest
)
(
*
FindDefaultBranchNameResponse
,
error
)
FindAllBranchNames
(
*
FindAllBranchNamesRequest
,
Ref_FindAllBranchNamesServer
)
error
FindAllTagNames
(
*
FindAllTagNamesRequest
,
Ref_FindAllTagNamesServer
)
error
// Find a Ref matching the given constraints. Response may be empty.
FindRefName
(
context
.
Context
,
*
FindRefNameRequest
)
(
*
FindRefNameResponse
,
error
)
// Return a stream so we can divide the response in chunks of branches
FindLocalBranches
(
*
FindLocalBranchesRequest
,
Ref_FindLocalBranchesServer
)
error
}
func
RegisterRefServer
(
s
*
grpc
.
Server
,
srv
RefServer
)
{
s
.
RegisterService
(
&
_Ref_serviceDesc
,
srv
)
}
func
_Ref_FindDefaultBranchName_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
FindDefaultBranchNameRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
RefServer
)
.
FindDefaultBranchName
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Ref/FindDefaultBranchName"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
RefServer
)
.
FindDefaultBranchName
(
ctx
,
req
.
(
*
FindDefaultBranchNameRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_Ref_FindAllBranchNames_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
FindAllBranchNamesRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
RefServer
)
.
FindAllBranchNames
(
m
,
&
refFindAllBranchNamesServer
{
stream
})
}
type
Ref_FindAllBranchNamesServer
interface
{
Send
(
*
FindAllBranchNamesResponse
)
error
grpc
.
ServerStream
}
type
refFindAllBranchNamesServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
refFindAllBranchNamesServer
)
Send
(
m
*
FindAllBranchNamesResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_Ref_FindAllTagNames_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
FindAllTagNamesRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
RefServer
)
.
FindAllTagNames
(
m
,
&
refFindAllTagNamesServer
{
stream
})
}
type
Ref_FindAllTagNamesServer
interface
{
Send
(
*
FindAllTagNamesResponse
)
error
grpc
.
ServerStream
}
type
refFindAllTagNamesServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
refFindAllTagNamesServer
)
Send
(
m
*
FindAllTagNamesResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_Ref_FindRefName_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
FindRefNameRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
RefServer
)
.
FindRefName
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Ref/FindRefName"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
RefServer
)
.
FindRefName
(
ctx
,
req
.
(
*
FindRefNameRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_Ref_FindLocalBranches_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
FindLocalBranchesRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
RefServer
)
.
FindLocalBranches
(
m
,
&
refFindLocalBranchesServer
{
stream
})
}
type
Ref_FindLocalBranchesServer
interface
{
Send
(
*
FindLocalBranchesResponse
)
error
grpc
.
ServerStream
}
type
refFindLocalBranchesServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
refFindLocalBranchesServer
)
Send
(
m
*
FindLocalBranchesResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_Ref_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Ref"
,
HandlerType
:
(
*
RefServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"FindDefaultBranchName"
,
Handler
:
_Ref_FindDefaultBranchName_Handler
,
},
{
MethodName
:
"FindRefName"
,
Handler
:
_Ref_FindRefName_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"FindAllBranchNames"
,
Handler
:
_Ref_FindAllBranchNames_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"FindAllTagNames"
,
Handler
:
_Ref_FindAllTagNames_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"FindLocalBranches"
,
Handler
:
_Ref_FindLocalBranches_Handler
,
ServerStreams
:
true
,
},
},
Metadata
:
"deprecated-services.proto"
,
}
// Client API for SmartHTTP service
type
SmartHTTPClient
interface
{
// The response body for GET /info/refs?service=git-upload-pack
InfoRefsUploadPack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_InfoRefsUploadPackClient
,
error
)
// The response body for GET /info/refs?service=git-receive-pack
InfoRefsReceivePack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_InfoRefsReceivePackClient
,
error
)
// Request and response body for POST /upload-pack
PostUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_PostUploadPackClient
,
error
)
// Request and response body for POST /receive-pack
PostReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_PostReceivePackClient
,
error
)
}
type
smartHTTPClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewSmartHTTPClient
(
cc
*
grpc
.
ClientConn
)
SmartHTTPClient
{
return
&
smartHTTPClient
{
cc
}
}
func
(
c
*
smartHTTPClient
)
InfoRefsUploadPack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_InfoRefsUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.SmartHTTP/InfoRefsUploadPack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPInfoRefsUploadPackClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
SmartHTTP_InfoRefsUploadPackClient
interface
{
Recv
()
(
*
InfoRefsResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPInfoRefsUploadPackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPInfoRefsUploadPackClient
)
Recv
()
(
*
InfoRefsResponse
,
error
)
{
m
:=
new
(
InfoRefsResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
smartHTTPClient
)
InfoRefsReceivePack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_InfoRefsReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.SmartHTTP/InfoRefsReceivePack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPInfoRefsReceivePackClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
err
:=
x
.
ClientStream
.
CloseSend
();
err
!=
nil
{
return
nil
,
err
}
return
x
,
nil
}
type
SmartHTTP_InfoRefsReceivePackClient
interface
{
Recv
()
(
*
InfoRefsResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPInfoRefsReceivePackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPInfoRefsReceivePackClient
)
Recv
()
(
*
InfoRefsResponse
,
error
)
{
m
:=
new
(
InfoRefsResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
smartHTTPClient
)
PostUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_PostUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP_serviceDesc
.
Streams
[
2
],
c
.
cc
,
"/gitaly.SmartHTTP/PostUploadPack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPPostUploadPackClient
{
stream
}
return
x
,
nil
}
type
SmartHTTP_PostUploadPackClient
interface
{
Send
(
*
PostUploadPackRequest
)
error
Recv
()
(
*
PostUploadPackResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPPostUploadPackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPPostUploadPackClient
)
Send
(
m
*
PostUploadPackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostUploadPackClient
)
Recv
()
(
*
PostUploadPackResponse
,
error
)
{
m
:=
new
(
PostUploadPackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
smartHTTPClient
)
PostReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_PostReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP_serviceDesc
.
Streams
[
3
],
c
.
cc
,
"/gitaly.SmartHTTP/PostReceivePack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPPostReceivePackClient
{
stream
}
return
x
,
nil
}
type
SmartHTTP_PostReceivePackClient
interface
{
Send
(
*
PostReceivePackRequest
)
error
Recv
()
(
*
PostReceivePackResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPPostReceivePackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPPostReceivePackClient
)
Send
(
m
*
PostReceivePackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostReceivePackClient
)
Recv
()
(
*
PostReceivePackResponse
,
error
)
{
m
:=
new
(
PostReceivePackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
// Server API for SmartHTTP service
type
SmartHTTPServer
interface
{
// The response body for GET /info/refs?service=git-upload-pack
InfoRefsUploadPack
(
*
InfoRefsRequest
,
SmartHTTP_InfoRefsUploadPackServer
)
error
// The response body for GET /info/refs?service=git-receive-pack
InfoRefsReceivePack
(
*
InfoRefsRequest
,
SmartHTTP_InfoRefsReceivePackServer
)
error
// Request and response body for POST /upload-pack
PostUploadPack
(
SmartHTTP_PostUploadPackServer
)
error
// Request and response body for POST /receive-pack
PostReceivePack
(
SmartHTTP_PostReceivePackServer
)
error
}
func
RegisterSmartHTTPServer
(
s
*
grpc
.
Server
,
srv
SmartHTTPServer
)
{
s
.
RegisterService
(
&
_SmartHTTP_serviceDesc
,
srv
)
}
func
_SmartHTTP_InfoRefsUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
InfoRefsRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
SmartHTTPServer
)
.
InfoRefsUploadPack
(
m
,
&
smartHTTPInfoRefsUploadPackServer
{
stream
})
}
type
SmartHTTP_InfoRefsUploadPackServer
interface
{
Send
(
*
InfoRefsResponse
)
error
grpc
.
ServerStream
}
type
smartHTTPInfoRefsUploadPackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPInfoRefsUploadPackServer
)
Send
(
m
*
InfoRefsResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_SmartHTTP_InfoRefsReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
InfoRefsRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
SmartHTTPServer
)
.
InfoRefsReceivePack
(
m
,
&
smartHTTPInfoRefsReceivePackServer
{
stream
})
}
type
SmartHTTP_InfoRefsReceivePackServer
interface
{
Send
(
*
InfoRefsResponse
)
error
grpc
.
ServerStream
}
type
smartHTTPInfoRefsReceivePackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPInfoRefsReceivePackServer
)
Send
(
m
*
InfoRefsResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_SmartHTTP_PostUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SmartHTTPServer
)
.
PostUploadPack
(
&
smartHTTPPostUploadPackServer
{
stream
})
}
type
SmartHTTP_PostUploadPackServer
interface
{
Send
(
*
PostUploadPackResponse
)
error
Recv
()
(
*
PostUploadPackRequest
,
error
)
grpc
.
ServerStream
}
type
smartHTTPPostUploadPackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPPostUploadPackServer
)
Send
(
m
*
PostUploadPackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostUploadPackServer
)
Recv
()
(
*
PostUploadPackRequest
,
error
)
{
m
:=
new
(
PostUploadPackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
_SmartHTTP_PostReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SmartHTTPServer
)
.
PostReceivePack
(
&
smartHTTPPostReceivePackServer
{
stream
})
}
type
SmartHTTP_PostReceivePackServer
interface
{
Send
(
*
PostReceivePackResponse
)
error
Recv
()
(
*
PostReceivePackRequest
,
error
)
grpc
.
ServerStream
}
type
smartHTTPPostReceivePackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPPostReceivePackServer
)
Send
(
m
*
PostReceivePackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostReceivePackServer
)
Recv
()
(
*
PostReceivePackRequest
,
error
)
{
m
:=
new
(
PostReceivePackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
var
_SmartHTTP_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.SmartHTTP"
,
HandlerType
:
(
*
SmartHTTPServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"InfoRefsUploadPack"
,
Handler
:
_SmartHTTP_InfoRefsUploadPack_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"InfoRefsReceivePack"
,
Handler
:
_SmartHTTP_InfoRefsReceivePack_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"PostUploadPack"
,
Handler
:
_SmartHTTP_PostUploadPack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
{
StreamName
:
"PostReceivePack"
,
Handler
:
_SmartHTTP_PostReceivePack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
},
Metadata
:
"deprecated-services.proto"
,
}
// Client API for SSH service
type
SSHClient
interface
{
// To forward 'git upload-pack' to Gitaly for SSH sessions
SSHUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH_SSHUploadPackClient
,
error
)
// To forward 'git receive-pack' to Gitaly for SSH sessions
SSHReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH_SSHReceivePackClient
,
error
)
}
type
sSHClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewSSHClient
(
cc
*
grpc
.
ClientConn
)
SSHClient
{
return
&
sSHClient
{
cc
}
}
func
(
c
*
sSHClient
)
SSHUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH_SSHUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SSH_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.SSH/SSHUploadPack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
sSHSSHUploadPackClient
{
stream
}
return
x
,
nil
}
type
SSH_SSHUploadPackClient
interface
{
Send
(
*
SSHUploadPackRequest
)
error
Recv
()
(
*
SSHUploadPackResponse
,
error
)
grpc
.
ClientStream
}
type
sSHSSHUploadPackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
sSHSSHUploadPackClient
)
Send
(
m
*
SSHUploadPackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHUploadPackClient
)
Recv
()
(
*
SSHUploadPackResponse
,
error
)
{
m
:=
new
(
SSHUploadPackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
(
c
*
sSHClient
)
SSHReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH_SSHReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SSH_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.SSH/SSHReceivePack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
sSHSSHReceivePackClient
{
stream
}
return
x
,
nil
}
type
SSH_SSHReceivePackClient
interface
{
Send
(
*
SSHReceivePackRequest
)
error
Recv
()
(
*
SSHReceivePackResponse
,
error
)
grpc
.
ClientStream
}
type
sSHSSHReceivePackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
sSHSSHReceivePackClient
)
Send
(
m
*
SSHReceivePackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHReceivePackClient
)
Recv
()
(
*
SSHReceivePackResponse
,
error
)
{
m
:=
new
(
SSHReceivePackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
// Server API for SSH service
type
SSHServer
interface
{
// To forward 'git upload-pack' to Gitaly for SSH sessions
SSHUploadPack
(
SSH_SSHUploadPackServer
)
error
// To forward 'git receive-pack' to Gitaly for SSH sessions
SSHReceivePack
(
SSH_SSHReceivePackServer
)
error
}
func
RegisterSSHServer
(
s
*
grpc
.
Server
,
srv
SSHServer
)
{
s
.
RegisterService
(
&
_SSH_serviceDesc
,
srv
)
}
func
_SSH_SSHUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SSHServer
)
.
SSHUploadPack
(
&
sSHSSHUploadPackServer
{
stream
})
}
type
SSH_SSHUploadPackServer
interface
{
Send
(
*
SSHUploadPackResponse
)
error
Recv
()
(
*
SSHUploadPackRequest
,
error
)
grpc
.
ServerStream
}
type
sSHSSHUploadPackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
sSHSSHUploadPackServer
)
Send
(
m
*
SSHUploadPackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHUploadPackServer
)
Recv
()
(
*
SSHUploadPackRequest
,
error
)
{
m
:=
new
(
SSHUploadPackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
func
_SSH_SSHReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SSHServer
)
.
SSHReceivePack
(
&
sSHSSHReceivePackServer
{
stream
})
}
type
SSH_SSHReceivePackServer
interface
{
Send
(
*
SSHReceivePackResponse
)
error
Recv
()
(
*
SSHReceivePackRequest
,
error
)
grpc
.
ServerStream
}
type
sSHSSHReceivePackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
sSHSSHReceivePackServer
)
Send
(
m
*
SSHReceivePackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHReceivePackServer
)
Recv
()
(
*
SSHReceivePackRequest
,
error
)
{
m
:=
new
(
SSHReceivePackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
}
return
m
,
nil
}
var
_SSH_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.SSH"
,
HandlerType
:
(
*
SSHServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"SSHUploadPack"
,
Handler
:
_SSH_SSHUploadPack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
{
StreamName
:
"SSHReceivePack"
,
Handler
:
_SSH_SSHReceivePack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
},
Metadata
:
"deprecated-services.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"deprecated-services.proto"
,
fileDescriptor2
)
}
var
fileDescriptor2
=
[]
byte
{
// 534 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xa4
,
0x94
,
0x5d
,
0x6e
,
0xd3
,
0x40
,
0x10
,
0x80
,
0x31
,
0x41
,
0x91
,
0x32
,
0xa1
,
0x0d
,
0x6c
,
0x85
,
0x68
,
0x0c
,
0x4d
,
0xda
,
0x0a
,
0x24
,
0x5e
,
0x88
,
0xaa
,
0x70
,
0x82
,
0x42
,
0x00
,
0x17
,
0xaa
,
0x2a
,
0xb2
,
0x13
,
0x7e
,
0x24
,
0x24
,
0xb4
,
0x38
,
0xb3
,
0x8d
,
0x85
,
0xe3
,
0x0d
,
0xde
,
0x6d
,
0xa5
,
0x9e
,
0x85
,
0x03
,
0xf0
,
0xca
,
0x49
,
0x78
,
0xe5
,
0x3a
,
0xc8
,
0x3f
,
0x13
,
0xaf
,
0x13
,
0xbb
,
0x3c
,
0xf4
,
0x6d
,
0x33
,
0xdf
,
0xcc
,
0xb7
,
0x93
,
0xf1
,
0xd8
,
0xd0
,
0x9d
,
0xe1
,
0x32
,
0x46
,
0x9f
,
0x6b
,
0x9c
,
0x3d
,
0x57
,
0x18
,
0x5f
,
0x06
,
0x3e
,
0xaa
,
0xc1
,
0x32
,
0x96
,
0x5a
,
0xb2
,
0xe6
,
0x79
,
0xa0
,
0x79
,
0x78
,
0x65
,
0xdf
,
0xf5
,
0xe5
,
0x62
,
0x11
,
0xe8
,
0x2c
,
0x6a
,
0xc3
,
0x2c
,
0x10
,
0x22
,
0x3f
,
0xef
,
0x44
,
0x52
,
0x07
,
0x22
,
0xf0
,
0xb9
,
0x0e
,
0x64
,
0x94
,
0x97
,
0xd9
,
0xad
,
0x18
,
0x89
,
0x77
,
0xd4
,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74
,
0xbd
,
0x3a
,
0x4c
,
0xd2
,
0x67
,
0xd6
,
0x91
,
0xc5
,
0x3e
,
0x41
,
0xc7
,
0xd8
,
0xf4
,
0xd4
,
0xdb
,
0xab
,
0x78
,
0x05
,
0x4c
,
0x71
,
0xbf
,
0x96
,
0x9b
,
0xe6
,
0xe1
,
0x6f
,
0x0b
,
0x1a
,
0x9e
,
0xe7
,
0x30
,
0x17
,
0xb6
,
0x3c
,
0xcf
,
0x31
,
0xfa
,
0x7e
,
0x4c
,
0xf5
,
0xa5
,
0x30
,
0xd9
,
0xf7
,
0x6a
,
0x68
,
0xa9
,
0xeb
,
0x29
,
0x6c
,
0x7b
,
0x9e
,
0x63
,
0x36
,
0x6d
,
0x96
,
0x55
,
0xf4
,
0xdc
,
0xab
,
0xc3
,
0xa6
,
0xf6
,
0x5b
,
0x33
,
0xfd
,
0x0e
,
0xbf
,
0xf8
,
0x17
,
0x00
,
0x00
,
0xff
,
0xff
,
0x79
,
0x83
,
0xb6
,
0xb0
,
0x02
,
0x06
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go
View file @
9136ca98
...
...
@@ -28,7 +28,7 @@ type CommitDiffRequest struct {
func
(
m
*
CommitDiffRequest
)
Reset
()
{
*
m
=
CommitDiffRequest
{}
}
func
(
m
*
CommitDiffRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitDiffRequest
)
ProtoMessage
()
{}
func
(
*
CommitDiffRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
0
}
}
func
(
*
CommitDiffRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
0
}
}
func
(
m
*
CommitDiffRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -82,7 +82,7 @@ type CommitDiffResponse struct {
func
(
m
*
CommitDiffResponse
)
Reset
()
{
*
m
=
CommitDiffResponse
{}
}
func
(
m
*
CommitDiffResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitDiffResponse
)
ProtoMessage
()
{}
func
(
*
CommitDiffResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
1
}
}
func
(
*
CommitDiffResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
1
}
}
func
(
m
*
CommitDiffResponse
)
GetFromPath
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -157,7 +157,7 @@ type CommitDeltaRequest struct {
func
(
m
*
CommitDeltaRequest
)
Reset
()
{
*
m
=
CommitDeltaRequest
{}
}
func
(
m
*
CommitDeltaRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitDeltaRequest
)
ProtoMessage
()
{}
func
(
*
CommitDeltaRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
2
}
}
func
(
*
CommitDeltaRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
2
}
}
func
(
m
*
CommitDeltaRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -200,7 +200,7 @@ type CommitDelta struct {
func
(
m
*
CommitDelta
)
Reset
()
{
*
m
=
CommitDelta
{}
}
func
(
m
*
CommitDelta
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitDelta
)
ProtoMessage
()
{}
func
(
*
CommitDelta
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
3
}
}
func
(
*
CommitDelta
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
3
}
}
func
(
m
*
CommitDelta
)
GetFromPath
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -251,7 +251,7 @@ type CommitDeltaResponse struct {
func
(
m
*
CommitDeltaResponse
)
Reset
()
{
*
m
=
CommitDeltaResponse
{}
}
func
(
m
*
CommitDeltaResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitDeltaResponse
)
ProtoMessage
()
{}
func
(
*
CommitDeltaResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
1
,
[]
int
{
4
}
}
func
(
*
CommitDeltaResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
4
}
}
func
(
m
*
CommitDeltaResponse
)
GetDeltas
()
[]
*
CommitDelta
{
if
m
!=
nil
{
...
...
@@ -276,29 +276,29 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for Diff service
// Client API for Diff
Service
service
type
DiffClient
interface
{
type
Diff
Service
Client
interface
{
// Returns stream of CommitDiffResponse with patches chunked over messages
CommitDiff
(
ctx
context
.
Context
,
in
*
CommitDiffRequest
,
opts
...
grpc
.
CallOption
)
(
Diff_CommitDiffClient
,
error
)
CommitDiff
(
ctx
context
.
Context
,
in
*
CommitDiffRequest
,
opts
...
grpc
.
CallOption
)
(
Diff
Service
_CommitDiffClient
,
error
)
// Return a stream so we can divide the response in chunks of deltas
CommitDelta
(
ctx
context
.
Context
,
in
*
CommitDeltaRequest
,
opts
...
grpc
.
CallOption
)
(
Diff_CommitDeltaClient
,
error
)
CommitDelta
(
ctx
context
.
Context
,
in
*
CommitDeltaRequest
,
opts
...
grpc
.
CallOption
)
(
Diff
Service
_CommitDeltaClient
,
error
)
}
type
diffClient
struct
{
type
diff
Service
Client
struct
{
cc
*
grpc
.
ClientConn
}
func
NewDiff
Client
(
cc
*
grpc
.
ClientConn
)
Diff
Client
{
return
&
diffClient
{
cc
}
func
NewDiff
ServiceClient
(
cc
*
grpc
.
ClientConn
)
DiffService
Client
{
return
&
diff
Service
Client
{
cc
}
}
func
(
c
*
diff
Client
)
CommitDiff
(
ctx
context
.
Context
,
in
*
CommitDiffRequest
,
opts
...
grpc
.
CallOption
)
(
Diff
_CommitDiffClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Diff
_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.Diff
/CommitDiff"
,
opts
...
)
func
(
c
*
diff
ServiceClient
)
CommitDiff
(
ctx
context
.
Context
,
in
*
CommitDiffRequest
,
opts
...
grpc
.
CallOption
)
(
DiffService
_CommitDiffClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Diff
Service_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.DiffService
/CommitDiff"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
diffCommitDiffClient
{
stream
}
x
:=
&
diff
Service
CommitDiffClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -308,16 +308,16 @@ func (c *diffClient) CommitDiff(ctx context.Context, in *CommitDiffRequest, opts
return
x
,
nil
}
type
Diff_CommitDiffClient
interface
{
type
Diff
Service
_CommitDiffClient
interface
{
Recv
()
(
*
CommitDiffResponse
,
error
)
grpc
.
ClientStream
}
type
diffCommitDiffClient
struct
{
type
diff
Service
CommitDiffClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
diffCommitDiffClient
)
Recv
()
(
*
CommitDiffResponse
,
error
)
{
func
(
x
*
diff
Service
CommitDiffClient
)
Recv
()
(
*
CommitDiffResponse
,
error
)
{
m
:=
new
(
CommitDiffResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -325,12 +325,12 @@ func (x *diffCommitDiffClient) Recv() (*CommitDiffResponse, error) {
return
m
,
nil
}
func
(
c
*
diff
Client
)
CommitDelta
(
ctx
context
.
Context
,
in
*
CommitDeltaRequest
,
opts
...
grpc
.
CallOption
)
(
Diff
_CommitDeltaClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Diff
_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.Diff
/CommitDelta"
,
opts
...
)
func
(
c
*
diff
ServiceClient
)
CommitDelta
(
ctx
context
.
Context
,
in
*
CommitDeltaRequest
,
opts
...
grpc
.
CallOption
)
(
DiffService
_CommitDeltaClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Diff
Service_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.DiffService
/CommitDelta"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
diffCommitDeltaClient
{
stream
}
x
:=
&
diff
Service
CommitDeltaClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -340,16 +340,16 @@ func (c *diffClient) CommitDelta(ctx context.Context, in *CommitDeltaRequest, op
return
x
,
nil
}
type
Diff_CommitDeltaClient
interface
{
type
Diff
Service
_CommitDeltaClient
interface
{
Recv
()
(
*
CommitDeltaResponse
,
error
)
grpc
.
ClientStream
}
type
diffCommitDeltaClient
struct
{
type
diff
Service
CommitDeltaClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
diffCommitDeltaClient
)
Recv
()
(
*
CommitDeltaResponse
,
error
)
{
func
(
x
*
diff
Service
CommitDeltaClient
)
Recv
()
(
*
CommitDeltaResponse
,
error
)
{
m
:=
new
(
CommitDeltaResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -357,112 +357,113 @@ func (x *diffCommitDeltaClient) Recv() (*CommitDeltaResponse, error) {
return
m
,
nil
}
// Server API for Diff service
// Server API for Diff
Service
service
type
DiffServer
interface
{
type
DiffServ
iceServ
er
interface
{
// Returns stream of CommitDiffResponse with patches chunked over messages
CommitDiff
(
*
CommitDiffRequest
,
Diff_CommitDiffServer
)
error
CommitDiff
(
*
CommitDiffRequest
,
Diff
Service
_CommitDiffServer
)
error
// Return a stream so we can divide the response in chunks of deltas
CommitDelta
(
*
CommitDeltaRequest
,
Diff_CommitDeltaServer
)
error
CommitDelta
(
*
CommitDeltaRequest
,
Diff
Service
_CommitDeltaServer
)
error
}
func
RegisterDiffServ
er
(
s
*
grpc
.
Server
,
srv
Diff
Server
)
{
s
.
RegisterService
(
&
_Diff_serviceDesc
,
srv
)
func
RegisterDiffServ
iceServer
(
s
*
grpc
.
Server
,
srv
DiffService
Server
)
{
s
.
RegisterService
(
&
_Diff
Service
_serviceDesc
,
srv
)
}
func
_Diff_CommitDiff_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_Diff
Service
_CommitDiff_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
CommitDiffRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
DiffServ
er
)
.
CommitDiff
(
m
,
&
diff
CommitDiffServer
{
stream
})
return
srv
.
(
DiffServ
iceServer
)
.
CommitDiff
(
m
,
&
diffService
CommitDiffServer
{
stream
})
}
type
Diff_CommitDiffServer
interface
{
type
Diff
Service
_CommitDiffServer
interface
{
Send
(
*
CommitDiffResponse
)
error
grpc
.
ServerStream
}
type
diffCommitDiffServer
struct
{
type
diff
Service
CommitDiffServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
diffCommitDiffServer
)
Send
(
m
*
CommitDiffResponse
)
error
{
func
(
x
*
diff
Service
CommitDiffServer
)
Send
(
m
*
CommitDiffResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_Diff_CommitDelta_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_Diff
Service
_CommitDelta_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
CommitDeltaRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
DiffServ
er
)
.
CommitDelta
(
m
,
&
diff
CommitDeltaServer
{
stream
})
return
srv
.
(
DiffServ
iceServer
)
.
CommitDelta
(
m
,
&
diffService
CommitDeltaServer
{
stream
})
}
type
Diff_CommitDeltaServer
interface
{
type
Diff
Service
_CommitDeltaServer
interface
{
Send
(
*
CommitDeltaResponse
)
error
grpc
.
ServerStream
}
type
diffCommitDeltaServer
struct
{
type
diff
Service
CommitDeltaServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
diffCommitDeltaServer
)
Send
(
m
*
CommitDeltaResponse
)
error
{
func
(
x
*
diff
Service
CommitDeltaServer
)
Send
(
m
*
CommitDeltaResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_Diff_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Diff"
,
HandlerType
:
(
*
DiffServer
)(
nil
),
var
_Diff
Service
_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Diff
Service
"
,
HandlerType
:
(
*
DiffServ
iceServ
er
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"CommitDiff"
,
Handler
:
_Diff_CommitDiff_Handler
,
Handler
:
_Diff
Service
_CommitDiff_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"CommitDelta"
,
Handler
:
_Diff_CommitDelta_Handler
,
Handler
:
_Diff
Service
_CommitDelta_Handler
,
ServerStreams
:
true
,
},
},
Metadata
:
"diff.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"diff.proto"
,
fileDescriptor1
)
}
var
fileDescriptor1
=
[]
byte
{
// 473 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xcc
,
0x94
,
0x4d
,
0x8a
,
0xdb
,
0x30
,
0x14
,
0xc7
,
0xab
,
0xc4
,
0x76
,
0x9c
,
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6e
,
0x91
,
0xa2
,
0xdd
,
0x9d
,
0x11
,
0x6f
,
0xa8
,
0xa6
,
0x38
,
0x86
,
0x88
,
0xd7
,
0x2c
,
0x97
,
0x85
,
0x33
,
0x12
,
0xb0
,
0x31
,
0x80
,
0xd7
,
0xec
,
0x6b
,
0x61
,
0x5d
,
0xb7
,
0x5e
,
0x18
,
0xbe
,
0x98
,
0x26
,
0x7f
,
0x50
,
0xdf
,
0x16
,
0x5e
,
0x69
,
0x7a
,
0x3e
,
0xf3
,
0xef
,
0xa7
,
0xe8
,
0x0d
,
0xa7
,
0xf8
,
0x1b
,
0xc1
,
0x6c
,
0x90
,
0xee
,
0xf9
,
0x8e
,
0x2f
,
0xf9
,
0x04
,
0xf3
,
0x47
,
0x7d
,
0x3d
,
0xec
,
0xdb
,
0x3b
,
0x08
,
0x98
,
0x11
,
0x5a
,
0x82
,
0xe2
,
0x71
,
0x3a
,
0x5b
,
0xcd
,
0x1f
,
0x9a
,
0x3a
,
0x34
,
0x1f
,
0x2c
,
0xab
,
0x5f
,
0x08
,
0x3c
,
0xb3
,
0xad
,
0xf8
,
0x33
,
0xc0
,
0x71
,
0x77
,
0xf1
,
0xe5
,
0x7f
,
0x77
,
0x8e
,
0xdf
,
0xed
,
0x62
,
0x71
,
0x0a
,
0xb9
,
0xa7
,
0x93
,
0x27
,
0xef
,
0x11
,
0xbe
,
0x7d
,
0xdc
,
0xbe
,
0xc5
,
0xa9
,
0xd7
,
0x0f
,
0xa1
,
0xae
,
0x4e
,
0xb2
,
0x63
,
0xac
,
0xfb
,
0xc0
,
0xfe
,
0x40
,
0x3e
,
0xfc
,
0x0b
,
0x00
,
0x00
,
0xff
,
0xff
,
0x0c
,
0x62
,
0x85
,
0xba
,
0x64
,
0x04
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"diff.proto"
,
fileDescriptor3
)
}
var
fileDescriptor3
=
[]
byte
{
// 481 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08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,
0x00
,
0xff
,
0xff
,
0x4b
,
0xf5
,
0xb7
,
0x6e
,
0x6b
,
0x04
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/notifications.pb.go
View file @
9136ca98
...
...
@@ -24,7 +24,7 @@ type PostReceiveRequest struct {
func
(
m
*
PostReceiveRequest
)
Reset
()
{
*
m
=
PostReceiveRequest
{}
}
func
(
m
*
PostReceiveRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PostReceiveRequest
)
ProtoMessage
()
{}
func
(
*
PostReceiveRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
2
,
[]
int
{
0
}
}
func
(
*
PostReceiveRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
4
,
[]
int
{
0
}
}
func
(
m
*
PostReceiveRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -39,7 +39,7 @@ type PostReceiveResponse struct {
func
(
m
*
PostReceiveResponse
)
Reset
()
{
*
m
=
PostReceiveResponse
{}
}
func
(
m
*
PostReceiveResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PostReceiveResponse
)
ProtoMessage
()
{}
func
(
*
PostReceiveResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
2
,
[]
int
{
1
}
}
func
(
*
PostReceiveResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
4
,
[]
int
{
1
}
}
func
init
()
{
proto
.
RegisterType
((
*
PostReceiveRequest
)(
nil
),
"gitaly.PostReceiveRequest"
)
...
...
@@ -54,74 +54,74 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for Notification
s
service
// Client API for Notification
Service
service
type
Notification
s
Client
interface
{
type
Notification
Service
Client
interface
{
PostReceive
(
ctx
context
.
Context
,
in
*
PostReceiveRequest
,
opts
...
grpc
.
CallOption
)
(
*
PostReceiveResponse
,
error
)
}
type
notification
s
Client
struct
{
type
notification
Service
Client
struct
{
cc
*
grpc
.
ClientConn
}
func
NewNotification
sClient
(
cc
*
grpc
.
ClientConn
)
Notifications
Client
{
return
&
notification
s
Client
{
cc
}
func
NewNotification
ServiceClient
(
cc
*
grpc
.
ClientConn
)
NotificationService
Client
{
return
&
notification
Service
Client
{
cc
}
}
func
(
c
*
notification
s
Client
)
PostReceive
(
ctx
context
.
Context
,
in
*
PostReceiveRequest
,
opts
...
grpc
.
CallOption
)
(
*
PostReceiveResponse
,
error
)
{
func
(
c
*
notification
Service
Client
)
PostReceive
(
ctx
context
.
Context
,
in
*
PostReceiveRequest
,
opts
...
grpc
.
CallOption
)
(
*
PostReceiveResponse
,
error
)
{
out
:=
new
(
PostReceiveResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Notification
s
/PostReceive"
,
in
,
out
,
c
.
cc
,
opts
...
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Notification
Service
/PostReceive"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
// Server API for Notification
s
service
// Server API for Notification
Service
service
type
Notification
s
Server
interface
{
type
Notification
Service
Server
interface
{
PostReceive
(
context
.
Context
,
*
PostReceiveRequest
)
(
*
PostReceiveResponse
,
error
)
}
func
RegisterNotification
sServer
(
s
*
grpc
.
Server
,
srv
Notifications
Server
)
{
s
.
RegisterService
(
&
_Notification
s
_serviceDesc
,
srv
)
func
RegisterNotification
ServiceServer
(
s
*
grpc
.
Server
,
srv
NotificationService
Server
)
{
s
.
RegisterService
(
&
_Notification
Service
_serviceDesc
,
srv
)
}
func
_Notification
s
_PostReceive_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
func
_Notification
Service
_PostReceive_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
PostReceiveRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
Notification
s
Server
)
.
PostReceive
(
ctx
,
in
)
return
srv
.
(
Notification
Service
Server
)
.
PostReceive
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Notification
s
/PostReceive"
,
FullMethod
:
"/gitaly.Notification
Service
/PostReceive"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
Notification
s
Server
)
.
PostReceive
(
ctx
,
req
.
(
*
PostReceiveRequest
))
return
srv
.
(
Notification
Service
Server
)
.
PostReceive
(
ctx
,
req
.
(
*
PostReceiveRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
var
_Notification
s
_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Notification
s
"
,
HandlerType
:
(
*
Notification
s
Server
)(
nil
),
var
_Notification
Service
_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Notification
Service
"
,
HandlerType
:
(
*
Notification
Service
Server
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"PostReceive"
,
Handler
:
_Notification
s
_PostReceive_Handler
,
Handler
:
_Notification
Service
_PostReceive_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"notifications.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"notifications.proto"
,
fileDescriptor
2
)
}
func
init
()
{
proto
.
RegisterFile
(
"notifications.proto"
,
fileDescriptor
4
)
}
var
fileDescriptor
2
=
[]
byte
{
// 1
63
bytes of a gzipped FileDescriptorProto
var
fileDescriptor
4
=
[]
byte
{
// 1
70
bytes of a gzipped FileDescriptorProto
0x1f
,
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
0x4b
,
0xd8
,
0x0f
,
0xc9
,
0x35
,
0xc1
,
0xa9
,
0x45
,
0x65
,
0x99
,
0x
c9
,
0xa9
,
0x42
,
0x1e
,
0x5c
,
0xdc
,
0x48
,
0xaa
,
0x85
,
0xa4
,
0x60
,
0x86
,
0x63
,
0x3a
,
0x46
,
0x4a
,
0x
1a
,
0xab
,
0x1c
,
0xc4
,
0x78
,
0x25
,
0x86
,
0x24
,
0x36
,
0xb0
,
0x47
,
0x8c
,
0x01
,
0x01
,
0x00
,
0x00
,
0x
ff
,
0xff
,
0x98
,
0xea
,
0xcc
,
0xff
,
0xf5
,
0x
00
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ref.pb.go
View file @
9136ca98
...
...
@@ -41,7 +41,7 @@ func (x FindLocalBranchesRequest_SortBy) String() string {
return
proto
.
EnumName
(
FindLocalBranchesRequest_SortBy_name
,
int32
(
x
))
}
func
(
FindLocalBranchesRequest_SortBy
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
8
,
0
}
return
fileDescriptor
5
,
[]
int
{
8
,
0
}
}
type
FindDefaultBranchNameRequest
struct
{
...
...
@@ -51,7 +51,7 @@ type FindDefaultBranchNameRequest struct {
func
(
m
*
FindDefaultBranchNameRequest
)
Reset
()
{
*
m
=
FindDefaultBranchNameRequest
{}
}
func
(
m
*
FindDefaultBranchNameRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindDefaultBranchNameRequest
)
ProtoMessage
()
{}
func
(
*
FindDefaultBranchNameRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
0
}
}
func
(
*
FindDefaultBranchNameRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
0
}
}
func
(
m
*
FindDefaultBranchNameRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -67,7 +67,7 @@ type FindDefaultBranchNameResponse struct {
func
(
m
*
FindDefaultBranchNameResponse
)
Reset
()
{
*
m
=
FindDefaultBranchNameResponse
{}
}
func
(
m
*
FindDefaultBranchNameResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindDefaultBranchNameResponse
)
ProtoMessage
()
{}
func
(
*
FindDefaultBranchNameResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
1
}
}
func
(
*
FindDefaultBranchNameResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
1
}
}
func
(
m
*
FindDefaultBranchNameResponse
)
GetName
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -83,7 +83,7 @@ type FindAllBranchNamesRequest struct {
func
(
m
*
FindAllBranchNamesRequest
)
Reset
()
{
*
m
=
FindAllBranchNamesRequest
{}
}
func
(
m
*
FindAllBranchNamesRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindAllBranchNamesRequest
)
ProtoMessage
()
{}
func
(
*
FindAllBranchNamesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
2
}
}
func
(
*
FindAllBranchNamesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
2
}
}
func
(
m
*
FindAllBranchNamesRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -99,7 +99,7 @@ type FindAllBranchNamesResponse struct {
func
(
m
*
FindAllBranchNamesResponse
)
Reset
()
{
*
m
=
FindAllBranchNamesResponse
{}
}
func
(
m
*
FindAllBranchNamesResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindAllBranchNamesResponse
)
ProtoMessage
()
{}
func
(
*
FindAllBranchNamesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
3
}
}
func
(
*
FindAllBranchNamesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
3
}
}
func
(
m
*
FindAllBranchNamesResponse
)
GetNames
()
[][]
byte
{
if
m
!=
nil
{
...
...
@@ -115,7 +115,7 @@ type FindAllTagNamesRequest struct {
func
(
m
*
FindAllTagNamesRequest
)
Reset
()
{
*
m
=
FindAllTagNamesRequest
{}
}
func
(
m
*
FindAllTagNamesRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindAllTagNamesRequest
)
ProtoMessage
()
{}
func
(
*
FindAllTagNamesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
4
}
}
func
(
*
FindAllTagNamesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
4
}
}
func
(
m
*
FindAllTagNamesRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -131,7 +131,7 @@ type FindAllTagNamesResponse struct {
func
(
m
*
FindAllTagNamesResponse
)
Reset
()
{
*
m
=
FindAllTagNamesResponse
{}
}
func
(
m
*
FindAllTagNamesResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindAllTagNamesResponse
)
ProtoMessage
()
{}
func
(
*
FindAllTagNamesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
5
}
}
func
(
*
FindAllTagNamesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
5
}
}
func
(
m
*
FindAllTagNamesResponse
)
GetNames
()
[][]
byte
{
if
m
!=
nil
{
...
...
@@ -151,7 +151,7 @@ type FindRefNameRequest struct {
func
(
m
*
FindRefNameRequest
)
Reset
()
{
*
m
=
FindRefNameRequest
{}
}
func
(
m
*
FindRefNameRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindRefNameRequest
)
ProtoMessage
()
{}
func
(
*
FindRefNameRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
6
}
}
func
(
*
FindRefNameRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
6
}
}
func
(
m
*
FindRefNameRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -182,7 +182,7 @@ type FindRefNameResponse struct {
func
(
m
*
FindRefNameResponse
)
Reset
()
{
*
m
=
FindRefNameResponse
{}
}
func
(
m
*
FindRefNameResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindRefNameResponse
)
ProtoMessage
()
{}
func
(
*
FindRefNameResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
7
}
}
func
(
*
FindRefNameResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
7
}
}
func
(
m
*
FindRefNameResponse
)
GetName
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -199,7 +199,7 @@ type FindLocalBranchesRequest struct {
func
(
m
*
FindLocalBranchesRequest
)
Reset
()
{
*
m
=
FindLocalBranchesRequest
{}
}
func
(
m
*
FindLocalBranchesRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindLocalBranchesRequest
)
ProtoMessage
()
{}
func
(
*
FindLocalBranchesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
8
}
}
func
(
*
FindLocalBranchesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
8
}
}
func
(
m
*
FindLocalBranchesRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -222,7 +222,7 @@ type FindLocalBranchesResponse struct {
func
(
m
*
FindLocalBranchesResponse
)
Reset
()
{
*
m
=
FindLocalBranchesResponse
{}
}
func
(
m
*
FindLocalBranchesResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindLocalBranchesResponse
)
ProtoMessage
()
{}
func
(
*
FindLocalBranchesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
9
}
}
func
(
*
FindLocalBranchesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
9
}
}
func
(
m
*
FindLocalBranchesResponse
)
GetBranches
()
[]
*
FindLocalBranchResponse
{
if
m
!=
nil
{
...
...
@@ -242,7 +242,7 @@ type FindLocalBranchResponse struct {
func
(
m
*
FindLocalBranchResponse
)
Reset
()
{
*
m
=
FindLocalBranchResponse
{}
}
func
(
m
*
FindLocalBranchResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindLocalBranchResponse
)
ProtoMessage
()
{}
func
(
*
FindLocalBranchResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
10
}
}
func
(
*
FindLocalBranchResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
10
}
}
func
(
m
*
FindLocalBranchResponse
)
GetName
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -288,7 +288,7 @@ type FindLocalBranchCommitAuthor struct {
func
(
m
*
FindLocalBranchCommitAuthor
)
Reset
()
{
*
m
=
FindLocalBranchCommitAuthor
{}
}
func
(
m
*
FindLocalBranchCommitAuthor
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FindLocalBranchCommitAuthor
)
ProtoMessage
()
{}
func
(
*
FindLocalBranchCommitAuthor
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
3
,
[]
int
{
11
}
}
func
(
*
FindLocalBranchCommitAuthor
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
11
}
}
func
(
m
*
FindLocalBranchCommitAuthor
)
GetName
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -335,41 +335,41 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for Ref service
// Client API for Ref
Service
service
type
RefClient
interface
{
type
Ref
Service
Client
interface
{
FindDefaultBranchName
(
ctx
context
.
Context
,
in
*
FindDefaultBranchNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindDefaultBranchNameResponse
,
error
)
FindAllBranchNames
(
ctx
context
.
Context
,
in
*
FindAllBranchNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindAllBranchNamesClient
,
error
)
FindAllTagNames
(
ctx
context
.
Context
,
in
*
FindAllTagNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindAllTagNamesClient
,
error
)
FindAllBranchNames
(
ctx
context
.
Context
,
in
*
FindAllBranchNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref
Service
_FindAllBranchNamesClient
,
error
)
FindAllTagNames
(
ctx
context
.
Context
,
in
*
FindAllTagNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref
Service
_FindAllTagNamesClient
,
error
)
// Find a Ref matching the given constraints. Response may be empty.
FindRefName
(
ctx
context
.
Context
,
in
*
FindRefNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindRefNameResponse
,
error
)
// Return a stream so we can divide the response in chunks of branches
FindLocalBranches
(
ctx
context
.
Context
,
in
*
FindLocalBranchesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref_FindLocalBranchesClient
,
error
)
FindLocalBranches
(
ctx
context
.
Context
,
in
*
FindLocalBranchesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref
Service
_FindLocalBranchesClient
,
error
)
}
type
refClient
struct
{
type
ref
Service
Client
struct
{
cc
*
grpc
.
ClientConn
}
func
NewRef
Client
(
cc
*
grpc
.
ClientConn
)
Ref
Client
{
return
&
refClient
{
cc
}
func
NewRef
ServiceClient
(
cc
*
grpc
.
ClientConn
)
RefService
Client
{
return
&
ref
Service
Client
{
cc
}
}
func
(
c
*
refClient
)
FindDefaultBranchName
(
ctx
context
.
Context
,
in
*
FindDefaultBranchNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindDefaultBranchNameResponse
,
error
)
{
func
(
c
*
ref
Service
Client
)
FindDefaultBranchName
(
ctx
context
.
Context
,
in
*
FindDefaultBranchNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindDefaultBranchNameResponse
,
error
)
{
out
:=
new
(
FindDefaultBranchNameResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Ref/FindDefaultBranchName"
,
in
,
out
,
c
.
cc
,
opts
...
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Ref
Service
/FindDefaultBranchName"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
ref
Client
)
FindAllBranchNames
(
ctx
context
.
Context
,
in
*
FindAllBranchNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref
_FindAllBranchNamesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref
_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.Ref
/FindAllBranchNames"
,
opts
...
)
func
(
c
*
ref
ServiceClient
)
FindAllBranchNames
(
ctx
context
.
Context
,
in
*
FindAllBranchNamesRequest
,
opts
...
grpc
.
CallOption
)
(
RefService
_FindAllBranchNamesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref
Service_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.RefService
/FindAllBranchNames"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
refFindAllBranchNamesClient
{
stream
}
x
:=
&
ref
Service
FindAllBranchNamesClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -379,16 +379,16 @@ func (c *refClient) FindAllBranchNames(ctx context.Context, in *FindAllBranchNam
return
x
,
nil
}
type
Ref_FindAllBranchNamesClient
interface
{
type
Ref
Service
_FindAllBranchNamesClient
interface
{
Recv
()
(
*
FindAllBranchNamesResponse
,
error
)
grpc
.
ClientStream
}
type
refFindAllBranchNamesClient
struct
{
type
ref
Service
FindAllBranchNamesClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
refFindAllBranchNamesClient
)
Recv
()
(
*
FindAllBranchNamesResponse
,
error
)
{
func
(
x
*
ref
Service
FindAllBranchNamesClient
)
Recv
()
(
*
FindAllBranchNamesResponse
,
error
)
{
m
:=
new
(
FindAllBranchNamesResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -396,12 +396,12 @@ func (x *refFindAllBranchNamesClient) Recv() (*FindAllBranchNamesResponse, error
return
m
,
nil
}
func
(
c
*
ref
Client
)
FindAllTagNames
(
ctx
context
.
Context
,
in
*
FindAllTagNamesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref
_FindAllTagNamesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref
_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.Ref
/FindAllTagNames"
,
opts
...
)
func
(
c
*
ref
ServiceClient
)
FindAllTagNames
(
ctx
context
.
Context
,
in
*
FindAllTagNamesRequest
,
opts
...
grpc
.
CallOption
)
(
RefService
_FindAllTagNamesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref
Service_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.RefService
/FindAllTagNames"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
refFindAllTagNamesClient
{
stream
}
x
:=
&
ref
Service
FindAllTagNamesClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -411,16 +411,16 @@ func (c *refClient) FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequ
return
x
,
nil
}
type
Ref_FindAllTagNamesClient
interface
{
type
Ref
Service
_FindAllTagNamesClient
interface
{
Recv
()
(
*
FindAllTagNamesResponse
,
error
)
grpc
.
ClientStream
}
type
refFindAllTagNamesClient
struct
{
type
ref
Service
FindAllTagNamesClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
refFindAllTagNamesClient
)
Recv
()
(
*
FindAllTagNamesResponse
,
error
)
{
func
(
x
*
ref
Service
FindAllTagNamesClient
)
Recv
()
(
*
FindAllTagNamesResponse
,
error
)
{
m
:=
new
(
FindAllTagNamesResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -428,21 +428,21 @@ func (x *refFindAllTagNamesClient) Recv() (*FindAllTagNamesResponse, error) {
return
m
,
nil
}
func
(
c
*
refClient
)
FindRefName
(
ctx
context
.
Context
,
in
*
FindRefNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindRefNameResponse
,
error
)
{
func
(
c
*
ref
Service
Client
)
FindRefName
(
ctx
context
.
Context
,
in
*
FindRefNameRequest
,
opts
...
grpc
.
CallOption
)
(
*
FindRefNameResponse
,
error
)
{
out
:=
new
(
FindRefNameResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Ref/FindRefName"
,
in
,
out
,
c
.
cc
,
opts
...
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.Ref
Service
/FindRefName"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
ref
Client
)
FindLocalBranches
(
ctx
context
.
Context
,
in
*
FindLocalBranchesRequest
,
opts
...
grpc
.
CallOption
)
(
Ref
_FindLocalBranchesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref
_serviceDesc
.
Streams
[
2
],
c
.
cc
,
"/gitaly.Ref
/FindLocalBranches"
,
opts
...
)
func
(
c
*
ref
ServiceClient
)
FindLocalBranches
(
ctx
context
.
Context
,
in
*
FindLocalBranchesRequest
,
opts
...
grpc
.
CallOption
)
(
RefService
_FindLocalBranchesClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_Ref
Service_serviceDesc
.
Streams
[
2
],
c
.
cc
,
"/gitaly.RefService
/FindLocalBranches"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
refFindLocalBranchesClient
{
stream
}
x
:=
&
ref
Service
FindLocalBranchesClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -452,16 +452,16 @@ func (c *refClient) FindLocalBranches(ctx context.Context, in *FindLocalBranches
return
x
,
nil
}
type
Ref_FindLocalBranchesClient
interface
{
type
Ref
Service
_FindLocalBranchesClient
interface
{
Recv
()
(
*
FindLocalBranchesResponse
,
error
)
grpc
.
ClientStream
}
type
refFindLocalBranchesClient
struct
{
type
ref
Service
FindLocalBranchesClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
refFindLocalBranchesClient
)
Recv
()
(
*
FindLocalBranchesResponse
,
error
)
{
func
(
x
*
ref
Service
FindLocalBranchesClient
)
Recv
()
(
*
FindLocalBranchesResponse
,
error
)
{
m
:=
new
(
FindLocalBranchesResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -469,195 +469,195 @@ func (x *refFindLocalBranchesClient) Recv() (*FindLocalBranchesResponse, error)
return
m
,
nil
}
// Server API for Ref service
// Server API for Ref
Service
service
type
RefServer
interface
{
type
RefServ
iceServ
er
interface
{
FindDefaultBranchName
(
context
.
Context
,
*
FindDefaultBranchNameRequest
)
(
*
FindDefaultBranchNameResponse
,
error
)
FindAllBranchNames
(
*
FindAllBranchNamesRequest
,
Ref_FindAllBranchNamesServer
)
error
FindAllTagNames
(
*
FindAllTagNamesRequest
,
Ref_FindAllTagNamesServer
)
error
FindAllBranchNames
(
*
FindAllBranchNamesRequest
,
Ref
Service
_FindAllBranchNamesServer
)
error
FindAllTagNames
(
*
FindAllTagNamesRequest
,
Ref
Service
_FindAllTagNamesServer
)
error
// Find a Ref matching the given constraints. Response may be empty.
FindRefName
(
context
.
Context
,
*
FindRefNameRequest
)
(
*
FindRefNameResponse
,
error
)
// Return a stream so we can divide the response in chunks of branches
FindLocalBranches
(
*
FindLocalBranchesRequest
,
Ref_FindLocalBranchesServer
)
error
FindLocalBranches
(
*
FindLocalBranchesRequest
,
Ref
Service
_FindLocalBranchesServer
)
error
}
func
RegisterRefServ
er
(
s
*
grpc
.
Server
,
srv
Ref
Server
)
{
s
.
RegisterService
(
&
_Ref_serviceDesc
,
srv
)
func
RegisterRefServ
iceServer
(
s
*
grpc
.
Server
,
srv
RefService
Server
)
{
s
.
RegisterService
(
&
_Ref
Service
_serviceDesc
,
srv
)
}
func
_Ref_FindDefaultBranchName_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
func
_Ref
Service
_FindDefaultBranchName_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
FindDefaultBranchNameRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
RefServer
)
.
FindDefaultBranchName
(
ctx
,
in
)
return
srv
.
(
RefServ
iceServ
er
)
.
FindDefaultBranchName
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Ref/FindDefaultBranchName"
,
FullMethod
:
"/gitaly.Ref
Service
/FindDefaultBranchName"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
RefServer
)
.
FindDefaultBranchName
(
ctx
,
req
.
(
*
FindDefaultBranchNameRequest
))
return
srv
.
(
RefServ
iceServ
er
)
.
FindDefaultBranchName
(
ctx
,
req
.
(
*
FindDefaultBranchNameRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_Ref_FindAllBranchNames_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_Ref
Service
_FindAllBranchNames_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
FindAllBranchNamesRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
RefServ
er
)
.
FindAllBranchNames
(
m
,
&
ref
FindAllBranchNamesServer
{
stream
})
return
srv
.
(
RefServ
iceServer
)
.
FindAllBranchNames
(
m
,
&
refService
FindAllBranchNamesServer
{
stream
})
}
type
Ref_FindAllBranchNamesServer
interface
{
type
Ref
Service
_FindAllBranchNamesServer
interface
{
Send
(
*
FindAllBranchNamesResponse
)
error
grpc
.
ServerStream
}
type
refFindAllBranchNamesServer
struct
{
type
ref
Service
FindAllBranchNamesServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
refFindAllBranchNamesServer
)
Send
(
m
*
FindAllBranchNamesResponse
)
error
{
func
(
x
*
ref
Service
FindAllBranchNamesServer
)
Send
(
m
*
FindAllBranchNamesResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_Ref_FindAllTagNames_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_Ref
Service
_FindAllTagNames_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
FindAllTagNamesRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
RefServ
er
)
.
FindAllTagNames
(
m
,
&
ref
FindAllTagNamesServer
{
stream
})
return
srv
.
(
RefServ
iceServer
)
.
FindAllTagNames
(
m
,
&
refService
FindAllTagNamesServer
{
stream
})
}
type
Ref_FindAllTagNamesServer
interface
{
type
Ref
Service
_FindAllTagNamesServer
interface
{
Send
(
*
FindAllTagNamesResponse
)
error
grpc
.
ServerStream
}
type
refFindAllTagNamesServer
struct
{
type
ref
Service
FindAllTagNamesServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
refFindAllTagNamesServer
)
Send
(
m
*
FindAllTagNamesResponse
)
error
{
func
(
x
*
ref
Service
FindAllTagNamesServer
)
Send
(
m
*
FindAllTagNamesResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_Ref_FindRefName_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
func
_Ref
Service
_FindRefName_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
FindRefNameRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
RefServer
)
.
FindRefName
(
ctx
,
in
)
return
srv
.
(
RefServ
iceServ
er
)
.
FindRefName
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.Ref/FindRefName"
,
FullMethod
:
"/gitaly.Ref
Service
/FindRefName"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
RefServer
)
.
FindRefName
(
ctx
,
req
.
(
*
FindRefNameRequest
))
return
srv
.
(
RefServ
iceServ
er
)
.
FindRefName
(
ctx
,
req
.
(
*
FindRefNameRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_Ref_FindLocalBranches_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_Ref
Service
_FindLocalBranches_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
FindLocalBranchesRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
RefServ
er
)
.
FindLocalBranches
(
m
,
&
ref
FindLocalBranchesServer
{
stream
})
return
srv
.
(
RefServ
iceServer
)
.
FindLocalBranches
(
m
,
&
refService
FindLocalBranchesServer
{
stream
})
}
type
Ref_FindLocalBranchesServer
interface
{
type
Ref
Service
_FindLocalBranchesServer
interface
{
Send
(
*
FindLocalBranchesResponse
)
error
grpc
.
ServerStream
}
type
refFindLocalBranchesServer
struct
{
type
ref
Service
FindLocalBranchesServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
refFindLocalBranchesServer
)
Send
(
m
*
FindLocalBranchesResponse
)
error
{
func
(
x
*
ref
Service
FindLocalBranchesServer
)
Send
(
m
*
FindLocalBranchesResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
var
_Ref_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Ref"
,
HandlerType
:
(
*
RefServer
)(
nil
),
var
_Ref
Service
_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.Ref
Service
"
,
HandlerType
:
(
*
RefServ
iceServ
er
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"FindDefaultBranchName"
,
Handler
:
_Ref_FindDefaultBranchName_Handler
,
Handler
:
_Ref
Service
_FindDefaultBranchName_Handler
,
},
{
MethodName
:
"FindRefName"
,
Handler
:
_Ref_FindRefName_Handler
,
Handler
:
_Ref
Service
_FindRefName_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"FindAllBranchNames"
,
Handler
:
_Ref_FindAllBranchNames_Handler
,
Handler
:
_Ref
Service
_FindAllBranchNames_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"FindAllTagNames"
,
Handler
:
_Ref_FindAllTagNames_Handler
,
Handler
:
_Ref
Service
_FindAllTagNames_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"FindLocalBranches"
,
Handler
:
_Ref_FindLocalBranches_Handler
,
Handler
:
_Ref
Service
_FindLocalBranches_Handler
,
ServerStreams
:
true
,
},
},
Metadata
:
"ref.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"ref.proto"
,
fileDescriptor
3
)
}
var
fileDescriptor
3
=
[]
byte
{
// 6
15
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xa4
,
0x54
,
0x
51
,
0x73
,
0xd2
,
0x4c
,
0x1
4
,
0x6d
,
0x0a
,
0xe5
,
0x6b
,
0x2f
,
0xf9
,
0x5a
,
0x5c
,
0x6b
,
0x8d
,
0x41
,
0x85
,
0x46
,
0x3b
,
0xe2
,
0x
4b
,
0x70
,
0xd2
,
0xf1
,
0xc9
,
0x17
,
0x29
,
0xe0
,
0xd4
,
0x99
,
0x8a
,
0xce
,
0x82
,
0x8e
,
0x0f
,
0xce
,
0x
30
,
0x0b
,
0x6c
,
0x20
,
0x4e
,
0xc2
,
0x62
,
0xb2
,
0x8c
,
0xf2
,
0xe0
,
0x2f
,
0xf0
,
0x87
,
0xf9
,
0xe6
,
0x
6f
,
0x72
,
0xd8
,
0x4d
,
0x68
,
0xa0
,
0x49
,
0xea
,
0x0c
,
0x4f
,
0xe1
,
0xde
,
0x3d
,
0xe7
,
0xde
,
0xbb
,
0x
f7
,
0xb0
,
0x07
,
0x0e
,
0x7c
,
0x6a
,
0x9b
,
0x33
,
0x9f
,
0x71
,
0x86
,
0x0a
,
0x63
,
0x87
,
0x13
,
0x77
,
0xa
1
,
0xab
,
0xc1
,
0x84
,
0xf8
,
0x74
,
0x24
,
0xb3
,
0x7a
,
0x65
,
0xcc
,
0xd8
,
0xd8
,
0xa5
,
0x75
,
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x7a
,
0x
39
,
0xf1
,
0x6c
,
0xb5
,
0x82
,
0x2f
,
0x70
,
0xe7
,
0xc6
,
0x9b
,
0x42
,
0xd5
,
0xdb
,
0x1e
,
0xb4
,
0x7e
,
0x
9a
,
0x81
,
0xb8
,
0x9e
,
0x73
,
0x50
,
0x10
,
0x52
,
0x9f
,
0xff
,
0x0d
,
0x00
,
0x00
,
0xff
,
0xff
,
0x2c
,
0x
c7
,
0x33
,
0x9b
,
0xfd
,
0x06
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"ref.proto"
,
fileDescriptor
5
)
}
var
fileDescriptor
5
=
[]
byte
{
// 6
20
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xa4
,
0x54
,
0x
c1
,
0x6e
,
0xd3
,
0x40
,
0x1
0
,
0xad
,
0xdb
,
0x34
,
0xb4
,
0x13
,
0xd3
,
0x86
,
0xa5
,
0x14
,
0xe3
,
0x02
,
0x4d
,
0x0d
,
0x15
,
0xe5
,
0x
e2
,
0x22
,
0x57
,
0x9c
,
0xb8
,
0x90
,
0x26
,
0x45
,
0x45
,
0x2a
,
0x05
,
0x6d
,
0x02
,
0xe2
,
0x80
,
0x14
,
0x
6d
,
0x9c
,
0x75
,
0x62
,
0x64
,
0x67
,
0xc3
,
0x7a
,
0x03
,
0xe4
,
0xc0
,
0x17
,
0xf0
,
0x61
,
0x7c
,
0x01
,
0x
ff
,
0x83
,
0xb2
,
0x6b
,
0xa7
,
0x4e
,
0x6a
,
0xbb
,
0x48
,
0x39
,
0x39
,
0x33
,
0xfb
,
0xde
,
0xcc
,
0xec
,
0x
bc
,
0xec
,
0x83
,
0x4d
,
0x4e
,
0x3d
,
0x7b
,
0xc4
,
0x99
,
0x60
,
0xa8
,
0xdc
,
0xf7
,
0x05
,
0x09
,
0x26
,
0xa
6
,
0x1e
,
0x0d
,
0x08
,
0xa7
,
0x3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f
,
0x7b
,
0x9e
,
0xaa
,
0x7b
,
0x0e
,
0x95
,
0x94
,
0x0b
,
0x20
,
0x33
,
0x
cd
,
0x99
,
0x77
,
0x26
,
0x73
,
0x2f
,
0xf3
,
0x6c
,
0xb6
,
0x82
,
0x2f
,
0x70
,
0xe7
,
0xda
,
0xd3
,
0x42
,
0x
b5
,
0x9b
,
0xde
,
0xb5
,
0x79
,
0x50
,
0x80
,
0xb8
,
0x9a
,
0xb3
,
0x5b
,
0x96
,
0x8a
,
0x9f
,
0xfc
,
0x0b
,
0x
00
,
0x00
,
0xff
,
0xff
,
0xaa
,
0x36
,
0x2a
,
0x93
,
0x04
,
0x07
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/repository-service.pb.go
0 → 100644
View file @
9136ca98
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: repository-service.proto
package
gitaly
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
context
"golang.org/x/net/context"
grpc
"google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
type
RepositoryExistsRequest
struct
{
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
}
func
(
m
*
RepositoryExistsRequest
)
Reset
()
{
*
m
=
RepositoryExistsRequest
{}
}
func
(
m
*
RepositoryExistsRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RepositoryExistsRequest
)
ProtoMessage
()
{}
func
(
*
RepositoryExistsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor6
,
[]
int
{
0
}
}
func
(
m
*
RepositoryExistsRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
return
m
.
Repository
}
return
nil
}
type
RepositoryExistsResponse
struct
{
Exists
bool
`protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"`
}
func
(
m
*
RepositoryExistsResponse
)
Reset
()
{
*
m
=
RepositoryExistsResponse
{}
}
func
(
m
*
RepositoryExistsResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RepositoryExistsResponse
)
ProtoMessage
()
{}
func
(
*
RepositoryExistsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor6
,
[]
int
{
1
}
}
func
(
m
*
RepositoryExistsResponse
)
GetExists
()
bool
{
if
m
!=
nil
{
return
m
.
Exists
}
return
false
}
func
init
()
{
proto
.
RegisterType
((
*
RepositoryExistsRequest
)(
nil
),
"gitaly.RepositoryExistsRequest"
)
proto
.
RegisterType
((
*
RepositoryExistsResponse
)(
nil
),
"gitaly.RepositoryExistsResponse"
)
}
// Reference imports to suppress errors if they are not otherwise used.
var
_
context
.
Context
var
_
grpc
.
ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for RepositoryService service
type
RepositoryServiceClient
interface
{
Exists
(
ctx
context
.
Context
,
in
*
RepositoryExistsRequest
,
opts
...
grpc
.
CallOption
)
(
*
RepositoryExistsResponse
,
error
)
}
type
repositoryServiceClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewRepositoryServiceClient
(
cc
*
grpc
.
ClientConn
)
RepositoryServiceClient
{
return
&
repositoryServiceClient
{
cc
}
}
func
(
c
*
repositoryServiceClient
)
Exists
(
ctx
context
.
Context
,
in
*
RepositoryExistsRequest
,
opts
...
grpc
.
CallOption
)
(
*
RepositoryExistsResponse
,
error
)
{
out
:=
new
(
RepositoryExistsResponse
)
err
:=
grpc
.
Invoke
(
ctx
,
"/gitaly.RepositoryService/Exists"
,
in
,
out
,
c
.
cc
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
// Server API for RepositoryService service
type
RepositoryServiceServer
interface
{
Exists
(
context
.
Context
,
*
RepositoryExistsRequest
)
(
*
RepositoryExistsResponse
,
error
)
}
func
RegisterRepositoryServiceServer
(
s
*
grpc
.
Server
,
srv
RepositoryServiceServer
)
{
s
.
RegisterService
(
&
_RepositoryService_serviceDesc
,
srv
)
}
func
_RepositoryService_Exists_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
RepositoryExistsRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
RepositoryServiceServer
)
.
Exists
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/gitaly.RepositoryService/Exists"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
RepositoryServiceServer
)
.
Exists
(
ctx
,
req
.
(
*
RepositoryExistsRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
var
_RepositoryService_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.RepositoryService"
,
HandlerType
:
(
*
RepositoryServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"Exists"
,
Handler
:
_RepositoryService_Exists_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"repository-service.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"repository-service.proto"
,
fileDescriptor6
)
}
var
fileDescriptor6
=
[]
byte
{
// 172 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xe2
,
0x92
,
0x28
,
0x4a
,
0x2d
,
0xc8
,
0x2f
,
0xce
,
0x2c
,
0xc9
,
0x2f
,
0xaa
,
0xd4
,
0x2d
,
0x4e
,
0x2d
,
0x2a
,
0xcb
,
0x4c
,
0x4e
,
0xd5
,
0x2b
,
0x28
,
0xca
,
0x2f
,
0xc9
,
0x17
,
0x62
,
0x4b
,
0xcf
,
0x2c
,
0x49
,
0xcc
,
0xa9
,
0x94
,
0xe2
,
0x29
,
0xce
,
0x48
,
0x2c
,
0x4a
,
0x4d
,
0x81
,
0x88
,
0x2a
,
0xf9
,
0x72
,
0x89
,
0x07
,
0xc1
,
0x75
,
0xb8
,
0x56
,
0x64
,
0x16
,
0x97
,
0x14
,
0x07
,
0xa5
,
0x16
,
0x96
,
0xa6
,
0x16
,
0x97
,
0x08
,
0x19
,
0x71
,
0x71
,
0x21
,
0x0c
,
0x93
,
0x60
,
0x54
,
0x60
,
0xd4
,
0xe0
,
0x36
,
0x12
,
0xd2
,
0x83
,
0x98
,
0xa2
,
0x87
,
0xd0
,
0x14
,
0x84
,
0xa4
,
0x4a
,
0xc9
,
0x88
,
0x4b
,
0x02
,
0xd3
,
0xb8
,
0xe2
,
0x82
,
0xfc
,
0xbc
,
0xe2
,
0x54
,
0x21
,
0x31
,
0x2e
,
0xb6
,
0x54
,
0xb0
,
0x08
,
0xd8
,
0x2c
,
0x8e
,
0x20
,
0x28
,
0xcf
,
0x28
,
0x89
,
0x4b
,
0x10
,
0xa1
,
0x27
,
0x18
,
0xe2
,
0x66
,
0x21
,
0x5f
,
0x2e
,
0x36
,
0x88
,
0x76
,
0x21
,
0x79
,
0x4c
,
0x2b
,
0x51
,
0xdc
,
0x29
,
0xa5
,
0x80
,
0x5b
,
0x01
,
0xc4
,
0x66
,
0x25
,
0x86
,
0x24
,
0x36
,
0xb0
,
0x6f
,
0x8d
,
0x01
,
0x01
,
0x00
,
0x00
,
0xff
,
0xff
,
0x7e
,
0xc1
,
0x7d
,
0x44
,
0x1f
,
0x01
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/shared.pb.go
View file @
9136ca98
...
...
@@ -6,6 +6,7 @@ package gitaly
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
google_protobuf
"github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -20,7 +21,7 @@ type Repository struct {
func
(
m
*
Repository
)
Reset
()
{
*
m
=
Repository
{}
}
func
(
m
*
Repository
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Repository
)
ProtoMessage
()
{}
func
(
*
Repository
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
4
,
[]
int
{
0
}
}
func
(
*
Repository
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
7
,
[]
int
{
0
}
}
func
(
m
*
Repository
)
GetStorageName
()
string
{
if
m
!=
nil
{
...
...
@@ -36,6 +37,94 @@ func (m *Repository) GetRelativePath() string {
return
""
}
type
GitCommit
struct
{
Id
string
`protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Subject
[]
byte
`protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
Body
[]
byte
`protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
Author
*
CommitAuthor
`protobuf:"bytes,4,opt,name=author" json:"author,omitempty"`
Committer
*
CommitAuthor
`protobuf:"bytes,5,opt,name=committer" json:"committer,omitempty"`
ParentIds
[]
string
`protobuf:"bytes,6,rep,name=parent_ids,json=parentIds" json:"parent_ids,omitempty"`
}
func
(
m
*
GitCommit
)
Reset
()
{
*
m
=
GitCommit
{}
}
func
(
m
*
GitCommit
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GitCommit
)
ProtoMessage
()
{}
func
(
*
GitCommit
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor7
,
[]
int
{
1
}
}
func
(
m
*
GitCommit
)
GetId
()
string
{
if
m
!=
nil
{
return
m
.
Id
}
return
""
}
func
(
m
*
GitCommit
)
GetSubject
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Subject
}
return
nil
}
func
(
m
*
GitCommit
)
GetBody
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Body
}
return
nil
}
func
(
m
*
GitCommit
)
GetAuthor
()
*
CommitAuthor
{
if
m
!=
nil
{
return
m
.
Author
}
return
nil
}
func
(
m
*
GitCommit
)
GetCommitter
()
*
CommitAuthor
{
if
m
!=
nil
{
return
m
.
Committer
}
return
nil
}
func
(
m
*
GitCommit
)
GetParentIds
()
[]
string
{
if
m
!=
nil
{
return
m
.
ParentIds
}
return
nil
}
type
CommitAuthor
struct
{
Name
[]
byte
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email
[]
byte
`protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Date
*
google_protobuf
.
Timestamp
`protobuf:"bytes,3,opt,name=date" json:"date,omitempty"`
}
func
(
m
*
CommitAuthor
)
Reset
()
{
*
m
=
CommitAuthor
{}
}
func
(
m
*
CommitAuthor
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitAuthor
)
ProtoMessage
()
{}
func
(
*
CommitAuthor
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor7
,
[]
int
{
2
}
}
func
(
m
*
CommitAuthor
)
GetName
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Name
}
return
nil
}
func
(
m
*
CommitAuthor
)
GetEmail
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Email
}
return
nil
}
func
(
m
*
CommitAuthor
)
GetDate
()
*
google_protobuf
.
Timestamp
{
if
m
!=
nil
{
return
m
.
Date
}
return
nil
}
type
ExitStatus
struct
{
Value
int32
`protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}
...
...
@@ -43,7 +132,7 @@ type ExitStatus struct {
func
(
m
*
ExitStatus
)
Reset
()
{
*
m
=
ExitStatus
{}
}
func
(
m
*
ExitStatus
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ExitStatus
)
ProtoMessage
()
{}
func
(
*
ExitStatus
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
4
,
[]
int
{
1
}
}
func
(
*
ExitStatus
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
7
,
[]
int
{
3
}
}
func
(
m
*
ExitStatus
)
GetValue
()
int32
{
if
m
!=
nil
{
...
...
@@ -54,22 +143,34 @@ func (m *ExitStatus) GetValue() int32 {
func
init
()
{
proto
.
RegisterType
((
*
Repository
)(
nil
),
"gitaly.Repository"
)
proto
.
RegisterType
((
*
GitCommit
)(
nil
),
"gitaly.GitCommit"
)
proto
.
RegisterType
((
*
CommitAuthor
)(
nil
),
"gitaly.CommitAuthor"
)
proto
.
RegisterType
((
*
ExitStatus
)(
nil
),
"gitaly.ExitStatus"
)
}
func
init
()
{
proto
.
RegisterFile
(
"shared.proto"
,
fileDescriptor4
)
}
var
fileDescriptor4
=
[]
byte
{
// 164 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x34
,
0xce
,
0x31
,
0x0f
,
0x82
,
0x30
,
0x10
,
0x05
,
0xe0
,
0x14
,
0x81
,
0xe8
,
0x89
,
0x89
,
0x69
,
0x1c
,
0x18
,
0x11
,
0x17
,
0x26
,
0x17
,
0x7f
,
0x83
,
0x8b
,
0x83
,
0x31
,
0xf5
,
0x07
,
0xe0
,
0x19
,
0x2f
,
0xd0
,
0xa4
,
0xd8
,
0xa6
,
0x3d
,
0x88
,
0xfc
,
0x7b
,
0x23
,
0xea
,
0xf8
,
0xbe
,
0xf7
,
0x86
,
0x07
,
0x59
,
0x68
,
0xd1
,
0xd3
,
0x63
,
0xef
,
0xbc
,
0x65
,
0x2b
,
0xd3
,
0x46
,
0x33
,
0x9a
,
0xb1
,
0xbc
,
0x01
,
0x28
,
0x72
,
0x36
,
0x68
,
0xb6
,
0x7e
,
0x94
,
0x5b
,
0xc8
,
0x02
,
0x5b
,
0x8f
,
0x0d
,
0xd5
,
0x4f
,
0xec
,
0x28
,
0x8f
,
0x0a
,
0x51
,
0x2d
,
0xd4
,
0xf2
,
0x67
,
0x67
,
0xec
,
0x48
,
0xee
,
0x60
,
0xe5
,
0xc9
,
0x20
,
0xeb
,
0x81
,
0x6a
,
0x87
,
0xdc
,
0xe6
,
0xb3
,
0x69
,
0x93
,
0xfd
,
0xf1
,
0x82
,
0xdc
,
0x9e
,
0xe2
,
0xb9
,
0x58
,
0x47
,
0x2a
,
0xfe
,
0xf4
,
0x65
,
0x09
,
0x70
,
0x7c
,
0x69
,
0xbe
,
0x32
,
0x72
,
0x1f
,
0xe4
,
0x06
,
0x92
,
0x01
,
0x4d
,
0x4f
,
0xb9
,
0x28
,
0x44
,
0x95
,
0xa8
,
0x6f
,
0xb8
,
0xa7
,
0xd3
,
0xa9
,
0xc3
,
0x3b
,
0x00
,
0x00
,
0xff
,
0xff
,
0xfe
,
0x53
,
0x2c
,
0xb6
,
0xa4
,
0x00
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"shared.proto"
,
fileDescriptor7
)
}
var
fileDescriptor7
=
[]
byte
{
// 335 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x7c
,
0x51
,
0xc1
,
0x4a
,
0xc3
,
0x40
,
0x10
,
0x25
,
0x69
,
0x1a
,
0xcd
,
0x34
,
0x8a
,
0x2c
,
0x3d
,
0x84
,
0x82
,
0x58
,
0xe3
,
0xa5
,
0x07
,
0x49
,
0xa1
,
0x7e
,
0x81
,
0x88
,
0x88
,
0x1e
,
0x44
,
0x56
,
0xef
,
0x75
,
0xd2
,
0xac
,
0xc9
,
0x4a
,
0xd2
,
0x0d
,
0xbb
,
0x93
,
0x62
,
0x7f
,
0xd1
,
0xaf
,
0x92
,
0xec
,
0x36
,
0xe8
,
0xc9
,
0xdb
,
0xce
,
0x9b
,
0xf7
,
0x66
,
0xe6
,
0xed
,
0x83
,
0xd8
,
0x54
,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x20
,
0xda
,
0x58
,
0x9c
,
0x84
,
0x4e
,
0xc6
,
0xff
,
0x08
,
0x7e
,
0x69
,
0xec
,
0x1c
,
0xa0
,
0x45
,
0x2d
,
0xb6
,
0xb4
,
0x96
,
0x85
,
0x49
,
0xc2
,
0xf9
,
0x68
,
0x11
,
0xf1
,
0xc8
,
0x21
,
0x8f
,
0x85
,
0x49
,
0x2b
,
0x88
,
0xff
,
0x2a
,
0xfb
,
0x23
,
0xed
,
0x47
,
0x79
,
0xee
,
0xc8
,
0xfe
,
0xcd
,
0xa6
,
0x30
,
0x16
,
0x0d
,
0xca
,
0xfa
,
0x60
,
0xc8
,
0x15
,
0x2c
,
0x83
,
0xa0
,
0x40
,
0x12
,
0xd6
,
0xce
,
0x64
,
0x35
,
0xcb
,
0x5c
,
0x30
,
0xd9
,
0x10
,
0x4c
,
0xf6
,
0x36
,
0x04
,
0xc3
,
0x2d
,
0x2f
,
0x4d
,
0x01
,
0xee
,
0xbf
,
0x24
,
0xbd
,
0x12
,
0x52
,
0x67
,
0xfa
,
0x99
,
0x3b
,
0xac
,
0x3b
,
0xb7
,
0x68
,
0xcc
,
0x5d
,
0x91
,
0x87
,
0x56
,
0x7d
,
0xf3
,
0x13
,
0x00
,
0x00
,
0xff
,
0xff
,
0x0a
,
0x87
,
0xe3
,
0xb7
,
0xfc
,
0x01
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go
View file @
9136ca98
...
...
@@ -24,7 +24,7 @@ type InfoRefsRequest struct {
func
(
m
*
InfoRefsRequest
)
Reset
()
{
*
m
=
InfoRefsRequest
{}
}
func
(
m
*
InfoRefsRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InfoRefsRequest
)
ProtoMessage
()
{}
func
(
*
InfoRefsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
0
}
}
func
(
*
InfoRefsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
8
,
[]
int
{
0
}
}
func
(
m
*
InfoRefsRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -40,7 +40,7 @@ type InfoRefsResponse struct {
func
(
m
*
InfoRefsResponse
)
Reset
()
{
*
m
=
InfoRefsResponse
{}
}
func
(
m
*
InfoRefsResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InfoRefsResponse
)
ProtoMessage
()
{}
func
(
*
InfoRefsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
1
}
}
func
(
*
InfoRefsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
8
,
[]
int
{
1
}
}
func
(
m
*
InfoRefsResponse
)
GetData
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -59,7 +59,7 @@ type PostUploadPackRequest struct {
func
(
m
*
PostUploadPackRequest
)
Reset
()
{
*
m
=
PostUploadPackRequest
{}
}
func
(
m
*
PostUploadPackRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PostUploadPackRequest
)
ProtoMessage
()
{}
func
(
*
PostUploadPackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
2
}
}
func
(
*
PostUploadPackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
8
,
[]
int
{
2
}
}
func
(
m
*
PostUploadPackRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -83,7 +83,7 @@ type PostUploadPackResponse struct {
func
(
m
*
PostUploadPackResponse
)
Reset
()
{
*
m
=
PostUploadPackResponse
{}
}
func
(
m
*
PostUploadPackResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PostUploadPackResponse
)
ProtoMessage
()
{}
func
(
*
PostUploadPackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
3
}
}
func
(
*
PostUploadPackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
8
,
[]
int
{
3
}
}
func
(
m
*
PostUploadPackResponse
)
GetData
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -106,7 +106,7 @@ type PostReceivePackRequest struct {
func
(
m
*
PostReceivePackRequest
)
Reset
()
{
*
m
=
PostReceivePackRequest
{}
}
func
(
m
*
PostReceivePackRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PostReceivePackRequest
)
ProtoMessage
()
{}
func
(
*
PostReceivePackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
4
}
}
func
(
*
PostReceivePackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
8
,
[]
int
{
4
}
}
func
(
m
*
PostReceivePackRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -144,7 +144,7 @@ type PostReceivePackResponse struct {
func
(
m
*
PostReceivePackResponse
)
Reset
()
{
*
m
=
PostReceivePackResponse
{}
}
func
(
m
*
PostReceivePackResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PostReceivePackResponse
)
ProtoMessage
()
{}
func
(
*
PostReceivePackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
5
,
[]
int
{
5
}
}
func
(
*
PostReceivePackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
8
,
[]
int
{
5
}
}
func
(
m
*
PostReceivePackResponse
)
GetData
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -170,33 +170,33 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for SmartHTTP service
// Client API for SmartHTTP
Service
service
type
SmartHTTPClient
interface
{
type
SmartHTTP
Service
Client
interface
{
// The response body for GET /info/refs?service=git-upload-pack
InfoRefsUploadPack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_InfoRefsUploadPackClient
,
error
)
InfoRefsUploadPack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
Service
_InfoRefsUploadPackClient
,
error
)
// The response body for GET /info/refs?service=git-receive-pack
InfoRefsReceivePack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_InfoRefsReceivePackClient
,
error
)
InfoRefsReceivePack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
Service
_InfoRefsReceivePackClient
,
error
)
// Request and response body for POST /upload-pack
PostUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_PostUploadPackClient
,
error
)
PostUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
Service
_PostUploadPackClient
,
error
)
// Request and response body for POST /receive-pack
PostReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP_PostReceivePackClient
,
error
)
PostReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
Service
_PostReceivePackClient
,
error
)
}
type
smartHTTPClient
struct
{
type
smartHTTP
Service
Client
struct
{
cc
*
grpc
.
ClientConn
}
func
NewSmartHTTP
Client
(
cc
*
grpc
.
ClientConn
)
SmartHTTP
Client
{
return
&
smartHTTPClient
{
cc
}
func
NewSmartHTTP
ServiceClient
(
cc
*
grpc
.
ClientConn
)
SmartHTTPService
Client
{
return
&
smartHTTP
Service
Client
{
cc
}
}
func
(
c
*
smartHTTP
Client
)
InfoRefsUploadPack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
_InfoRefsUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.SmartHTTP
/InfoRefsUploadPack"
,
opts
...
)
func
(
c
*
smartHTTP
ServiceClient
)
InfoRefsUploadPack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTPService
_InfoRefsUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
Service_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.SmartHTTPService
/InfoRefsUploadPack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPInfoRefsUploadPackClient
{
stream
}
x
:=
&
smartHTTP
Service
InfoRefsUploadPackClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -206,16 +206,16 @@ func (c *smartHTTPClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRe
return
x
,
nil
}
type
SmartHTTP_InfoRefsUploadPackClient
interface
{
type
SmartHTTP
Service
_InfoRefsUploadPackClient
interface
{
Recv
()
(
*
InfoRefsResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPInfoRefsUploadPackClient
struct
{
type
smartHTTP
Service
InfoRefsUploadPackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPInfoRefsUploadPackClient
)
Recv
()
(
*
InfoRefsResponse
,
error
)
{
func
(
x
*
smartHTTP
Service
InfoRefsUploadPackClient
)
Recv
()
(
*
InfoRefsResponse
,
error
)
{
m
:=
new
(
InfoRefsResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -223,12 +223,12 @@ func (x *smartHTTPInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) {
return
m
,
nil
}
func
(
c
*
smartHTTP
Client
)
InfoRefsReceivePack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
_InfoRefsReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.SmartHTTP
/InfoRefsReceivePack"
,
opts
...
)
func
(
c
*
smartHTTP
ServiceClient
)
InfoRefsReceivePack
(
ctx
context
.
Context
,
in
*
InfoRefsRequest
,
opts
...
grpc
.
CallOption
)
(
SmartHTTPService
_InfoRefsReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
Service_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.SmartHTTPService
/InfoRefsReceivePack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPInfoRefsReceivePackClient
{
stream
}
x
:=
&
smartHTTP
Service
InfoRefsReceivePackClient
{
stream
}
if
err
:=
x
.
ClientStream
.
SendMsg
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -238,16 +238,16 @@ func (c *smartHTTPClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsR
return
x
,
nil
}
type
SmartHTTP_InfoRefsReceivePackClient
interface
{
type
SmartHTTP
Service
_InfoRefsReceivePackClient
interface
{
Recv
()
(
*
InfoRefsResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPInfoRefsReceivePackClient
struct
{
type
smartHTTP
Service
InfoRefsReceivePackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPInfoRefsReceivePackClient
)
Recv
()
(
*
InfoRefsResponse
,
error
)
{
func
(
x
*
smartHTTP
Service
InfoRefsReceivePackClient
)
Recv
()
(
*
InfoRefsResponse
,
error
)
{
m
:=
new
(
InfoRefsResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -255,30 +255,30 @@ func (x *smartHTTPInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) {
return
m
,
nil
}
func
(
c
*
smartHTTP
Client
)
PostUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
_PostUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
_serviceDesc
.
Streams
[
2
],
c
.
cc
,
"/gitaly.SmartHTTP
/PostUploadPack"
,
opts
...
)
func
(
c
*
smartHTTP
ServiceClient
)
PostUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTPService
_PostUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
Service_serviceDesc
.
Streams
[
2
],
c
.
cc
,
"/gitaly.SmartHTTPService
/PostUploadPack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPPostUploadPackClient
{
stream
}
x
:=
&
smartHTTP
Service
PostUploadPackClient
{
stream
}
return
x
,
nil
}
type
SmartHTTP_PostUploadPackClient
interface
{
type
SmartHTTP
Service
_PostUploadPackClient
interface
{
Send
(
*
PostUploadPackRequest
)
error
Recv
()
(
*
PostUploadPackResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPPostUploadPackClient
struct
{
type
smartHTTP
Service
PostUploadPackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPPostUploadPackClient
)
Send
(
m
*
PostUploadPackRequest
)
error
{
func
(
x
*
smartHTTP
Service
PostUploadPackClient
)
Send
(
m
*
PostUploadPackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostUploadPackClient
)
Recv
()
(
*
PostUploadPackResponse
,
error
)
{
func
(
x
*
smartHTTP
Service
PostUploadPackClient
)
Recv
()
(
*
PostUploadPackResponse
,
error
)
{
m
:=
new
(
PostUploadPackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -286,30 +286,30 @@ func (x *smartHTTPPostUploadPackClient) Recv() (*PostUploadPackResponse, error)
return
m
,
nil
}
func
(
c
*
smartHTTP
Client
)
PostReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTP
_PostReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
_serviceDesc
.
Streams
[
3
],
c
.
cc
,
"/gitaly.SmartHTTP
/PostReceivePack"
,
opts
...
)
func
(
c
*
smartHTTP
ServiceClient
)
PostReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SmartHTTPService
_PostReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SmartHTTP
Service_serviceDesc
.
Streams
[
3
],
c
.
cc
,
"/gitaly.SmartHTTPService
/PostReceivePack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
smartHTTPPostReceivePackClient
{
stream
}
x
:=
&
smartHTTP
Service
PostReceivePackClient
{
stream
}
return
x
,
nil
}
type
SmartHTTP_PostReceivePackClient
interface
{
type
SmartHTTP
Service
_PostReceivePackClient
interface
{
Send
(
*
PostReceivePackRequest
)
error
Recv
()
(
*
PostReceivePackResponse
,
error
)
grpc
.
ClientStream
}
type
smartHTTPPostReceivePackClient
struct
{
type
smartHTTP
Service
PostReceivePackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
smartHTTPPostReceivePackClient
)
Send
(
m
*
PostReceivePackRequest
)
error
{
func
(
x
*
smartHTTP
Service
PostReceivePackClient
)
Send
(
m
*
PostReceivePackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostReceivePackClient
)
Recv
()
(
*
PostReceivePackResponse
,
error
)
{
func
(
x
*
smartHTTP
Service
PostReceivePackClient
)
Recv
()
(
*
PostReceivePackResponse
,
error
)
{
m
:=
new
(
PostReceivePackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -317,84 +317,84 @@ func (x *smartHTTPPostReceivePackClient) Recv() (*PostReceivePackResponse, error
return
m
,
nil
}
// Server API for SmartHTTP service
// Server API for SmartHTTP
Service
service
type
SmartHTTPServer
interface
{
type
SmartHTTPServ
iceServ
er
interface
{
// The response body for GET /info/refs?service=git-upload-pack
InfoRefsUploadPack
(
*
InfoRefsRequest
,
SmartHTTP_InfoRefsUploadPackServer
)
error
InfoRefsUploadPack
(
*
InfoRefsRequest
,
SmartHTTP
Service
_InfoRefsUploadPackServer
)
error
// The response body for GET /info/refs?service=git-receive-pack
InfoRefsReceivePack
(
*
InfoRefsRequest
,
SmartHTTP_InfoRefsReceivePackServer
)
error
InfoRefsReceivePack
(
*
InfoRefsRequest
,
SmartHTTP
Service
_InfoRefsReceivePackServer
)
error
// Request and response body for POST /upload-pack
PostUploadPack
(
SmartHTTP_PostUploadPackServer
)
error
PostUploadPack
(
SmartHTTP
Service
_PostUploadPackServer
)
error
// Request and response body for POST /receive-pack
PostReceivePack
(
SmartHTTP_PostReceivePackServer
)
error
PostReceivePack
(
SmartHTTP
Service
_PostReceivePackServer
)
error
}
func
RegisterSmartHTTPServ
er
(
s
*
grpc
.
Server
,
srv
SmartHTTP
Server
)
{
s
.
RegisterService
(
&
_SmartHTTP_serviceDesc
,
srv
)
func
RegisterSmartHTTPServ
iceServer
(
s
*
grpc
.
Server
,
srv
SmartHTTPService
Server
)
{
s
.
RegisterService
(
&
_SmartHTTP
Service
_serviceDesc
,
srv
)
}
func
_SmartHTTP_InfoRefsUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_SmartHTTP
Service
_InfoRefsUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
InfoRefsRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
SmartHTTPServ
er
)
.
InfoRefsUploadPack
(
m
,
&
smartHTTP
InfoRefsUploadPackServer
{
stream
})
return
srv
.
(
SmartHTTPServ
iceServer
)
.
InfoRefsUploadPack
(
m
,
&
smartHTTPService
InfoRefsUploadPackServer
{
stream
})
}
type
SmartHTTP_InfoRefsUploadPackServer
interface
{
type
SmartHTTP
Service
_InfoRefsUploadPackServer
interface
{
Send
(
*
InfoRefsResponse
)
error
grpc
.
ServerStream
}
type
smartHTTPInfoRefsUploadPackServer
struct
{
type
smartHTTP
Service
InfoRefsUploadPackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPInfoRefsUploadPackServer
)
Send
(
m
*
InfoRefsResponse
)
error
{
func
(
x
*
smartHTTP
Service
InfoRefsUploadPackServer
)
Send
(
m
*
InfoRefsResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_SmartHTTP_InfoRefsReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
func
_SmartHTTP
Service
_InfoRefsReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
m
:=
new
(
InfoRefsRequest
)
if
err
:=
stream
.
RecvMsg
(
m
);
err
!=
nil
{
return
err
}
return
srv
.
(
SmartHTTPServ
er
)
.
InfoRefsReceivePack
(
m
,
&
smartHTTP
InfoRefsReceivePackServer
{
stream
})
return
srv
.
(
SmartHTTPServ
iceServer
)
.
InfoRefsReceivePack
(
m
,
&
smartHTTPService
InfoRefsReceivePackServer
{
stream
})
}
type
SmartHTTP_InfoRefsReceivePackServer
interface
{
type
SmartHTTP
Service
_InfoRefsReceivePackServer
interface
{
Send
(
*
InfoRefsResponse
)
error
grpc
.
ServerStream
}
type
smartHTTPInfoRefsReceivePackServer
struct
{
type
smartHTTP
Service
InfoRefsReceivePackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPInfoRefsReceivePackServer
)
Send
(
m
*
InfoRefsResponse
)
error
{
func
(
x
*
smartHTTP
Service
InfoRefsReceivePackServer
)
Send
(
m
*
InfoRefsResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
_SmartHTTP_PostUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SmartHTTPServ
er
)
.
PostUploadPack
(
&
smartHTTP
PostUploadPackServer
{
stream
})
func
_SmartHTTP
Service
_PostUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SmartHTTPServ
iceServer
)
.
PostUploadPack
(
&
smartHTTPService
PostUploadPackServer
{
stream
})
}
type
SmartHTTP_PostUploadPackServer
interface
{
type
SmartHTTP
Service
_PostUploadPackServer
interface
{
Send
(
*
PostUploadPackResponse
)
error
Recv
()
(
*
PostUploadPackRequest
,
error
)
grpc
.
ServerStream
}
type
smartHTTPPostUploadPackServer
struct
{
type
smartHTTP
Service
PostUploadPackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPPostUploadPackServer
)
Send
(
m
*
PostUploadPackResponse
)
error
{
func
(
x
*
smartHTTP
Service
PostUploadPackServer
)
Send
(
m
*
PostUploadPackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostUploadPackServer
)
Recv
()
(
*
PostUploadPackRequest
,
error
)
{
func
(
x
*
smartHTTP
Service
PostUploadPackServer
)
Recv
()
(
*
PostUploadPackRequest
,
error
)
{
m
:=
new
(
PostUploadPackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -402,25 +402,25 @@ func (x *smartHTTPPostUploadPackServer) Recv() (*PostUploadPackRequest, error) {
return
m
,
nil
}
func
_SmartHTTP_PostReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SmartHTTPServ
er
)
.
PostReceivePack
(
&
smartHTTP
PostReceivePackServer
{
stream
})
func
_SmartHTTP
Service
_PostReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SmartHTTPServ
iceServer
)
.
PostReceivePack
(
&
smartHTTPService
PostReceivePackServer
{
stream
})
}
type
SmartHTTP_PostReceivePackServer
interface
{
type
SmartHTTP
Service
_PostReceivePackServer
interface
{
Send
(
*
PostReceivePackResponse
)
error
Recv
()
(
*
PostReceivePackRequest
,
error
)
grpc
.
ServerStream
}
type
smartHTTPPostReceivePackServer
struct
{
type
smartHTTP
Service
PostReceivePackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
smartHTTPPostReceivePackServer
)
Send
(
m
*
PostReceivePackResponse
)
error
{
func
(
x
*
smartHTTP
Service
PostReceivePackServer
)
Send
(
m
*
PostReceivePackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
smartHTTPPostReceivePackServer
)
Recv
()
(
*
PostReceivePackRequest
,
error
)
{
func
(
x
*
smartHTTP
Service
PostReceivePackServer
)
Recv
()
(
*
PostReceivePackRequest
,
error
)
{
m
:=
new
(
PostReceivePackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -428,30 +428,30 @@ func (x *smartHTTPPostReceivePackServer) Recv() (*PostReceivePackRequest, error)
return
m
,
nil
}
var
_SmartHTTP_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.SmartHTTP"
,
HandlerType
:
(
*
SmartHTTPServer
)(
nil
),
var
_SmartHTTP
Service
_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.SmartHTTP
Service
"
,
HandlerType
:
(
*
SmartHTTPServ
iceServ
er
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"InfoRefsUploadPack"
,
Handler
:
_SmartHTTP_InfoRefsUploadPack_Handler
,
Handler
:
_SmartHTTP
Service
_InfoRefsUploadPack_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"InfoRefsReceivePack"
,
Handler
:
_SmartHTTP_InfoRefsReceivePack_Handler
,
Handler
:
_SmartHTTP
Service
_InfoRefsReceivePack_Handler
,
ServerStreams
:
true
,
},
{
StreamName
:
"PostUploadPack"
,
Handler
:
_SmartHTTP_PostUploadPack_Handler
,
Handler
:
_SmartHTTP
Service
_PostUploadPack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
{
StreamName
:
"PostReceivePack"
,
Handler
:
_SmartHTTP_PostReceivePack_Handler
,
Handler
:
_SmartHTTP
Service
_PostReceivePack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
...
...
@@ -459,29 +459,29 @@ var _SmartHTTP_serviceDesc = grpc.ServiceDesc{
Metadata
:
"smarthttp.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"smarthttp.proto"
,
fileDescriptor
5
)
}
func
init
()
{
proto
.
RegisterFile
(
"smarthttp.proto"
,
fileDescriptor
8
)
}
var
fileDescriptor
5
=
[]
byte
{
// 32
1
bytes of a gzipped FileDescriptorProto
var
fileDescriptor
8
=
[]
byte
{
// 32
7
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xb4
,
0x53
,
0x4d
,
0x4b
,
0xc3
,
0x40
,
0x10
,
0x75
,
0x6b
,
0x2d
,
0x
74
,
0xac
,
0x56
,
0xa6
,
0x68
,
0x4b
,
0x40
,
0x2d
,
0x11
,
0xa4
,
0x07
,
0x0
d
,
0x
25
,
0xfe
,
0x06
,
0xc1
,
0xa2
,
0x87
,
0xb0
,
0xb6
,
0xe0
,
0x2d
,
0xac
,
0xcd
,
0x36
,
0x0d
,
0xae
,
0xdd
,
0x
98
,
0x5d
,
0x85
,
0xfe
,
0x15
,
0xff
,
0x98
,
0x7f
,
0x47
,
0x4c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c
,
0xd5
,
0x10
,
0xac
,
0x7b
,
0x22
,
0x65
,
0xb6
,
0xaf
,
0xa1
,
0x
5d
,
0xf0
,
0x56
,
0xbe
,
0xcb
,
0xf0
,
0xa3
,
0x02
,
0xcd
,
0xc9
,
0x57
,
0xe6
,
0x77
,
0xd3
,
0xe9
,
0x78
,
0x
c2
,
0xd5
,
0xda
,
0x77
,
0x38
,
0xde
,
0x03
,
0xc6
,
0xb9
,
0xa4
,
0x27
,
0xc1
,
0x76
,
0xbc
,
0x47
,
0x2e
,
0x
7a
,
0xab
,
0x53
,
0x04
,
0x22
,
0x45
,
0x7b
,
0x67
,
0x40
,
0xf0
,
0x01
,
0x5a
,
0x69
,
0x3d
,
0x31
,
0xf5
,
0x
5b
,
0xb6
,
0x19
,
0x1c
,
0x6d
,
0x27
,
0x85
,
0xa7
,
0x71
,
0xff
,
0xb7
,
0xbf
,
0x88
,
0x75
,
0x56
,
0x06
,
0x
c7
,
0xa4
,
0x3d
,
0x32
,
0x20
,
0xf8
,
0x08
,
0x8d
,
0xdc
,
0xd5
,
0x70
,
0x6b
,
0xb0
,
0x18
,
0xb5
,
0x75
,
0x
5e
,
0x8a
,
0x67
,
0x99
,
0x9f
,
0x6a
,
0xe1
,
0x8b
,
0xb9
,
0xf9
,
0x0c
,
0x00
,
0x00
,
0xff
,
0xff
,
0xbe
,
0x
10
,
0x08
,
0x81
,
0x5a
,
0x03
,
0x00
,
0x
00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go
View file @
9136ca98
...
...
@@ -27,7 +27,7 @@ type SSHUploadPackRequest struct {
func
(
m
*
SSHUploadPackRequest
)
Reset
()
{
*
m
=
SSHUploadPackRequest
{}
}
func
(
m
*
SSHUploadPackRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SSHUploadPackRequest
)
ProtoMessage
()
{}
func
(
*
SSHUploadPackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
6
,
[]
int
{
0
}
}
func
(
*
SSHUploadPackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
9
,
[]
int
{
0
}
}
func
(
m
*
SSHUploadPackRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -56,7 +56,7 @@ type SSHUploadPackResponse struct {
func
(
m
*
SSHUploadPackResponse
)
Reset
()
{
*
m
=
SSHUploadPackResponse
{}
}
func
(
m
*
SSHUploadPackResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SSHUploadPackResponse
)
ProtoMessage
()
{}
func
(
*
SSHUploadPackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
6
,
[]
int
{
1
}
}
func
(
*
SSHUploadPackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
9
,
[]
int
{
1
}
}
func
(
m
*
SSHUploadPackResponse
)
GetStdout
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -93,7 +93,7 @@ type SSHReceivePackRequest struct {
func
(
m
*
SSHReceivePackRequest
)
Reset
()
{
*
m
=
SSHReceivePackRequest
{}
}
func
(
m
*
SSHReceivePackRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SSHReceivePackRequest
)
ProtoMessage
()
{}
func
(
*
SSHReceivePackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
6
,
[]
int
{
2
}
}
func
(
*
SSHReceivePackRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
9
,
[]
int
{
2
}
}
func
(
m
*
SSHReceivePackRequest
)
GetRepository
()
*
Repository
{
if
m
!=
nil
{
...
...
@@ -136,7 +136,7 @@ type SSHReceivePackResponse struct {
func
(
m
*
SSHReceivePackResponse
)
Reset
()
{
*
m
=
SSHReceivePackResponse
{}
}
func
(
m
*
SSHReceivePackResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SSHReceivePackResponse
)
ProtoMessage
()
{}
func
(
*
SSHReceivePackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
6
,
[]
int
{
3
}
}
func
(
*
SSHReceivePackResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor
9
,
[]
int
{
3
}
}
func
(
m
*
SSHReceivePackResponse
)
GetStdout
()
[]
byte
{
if
m
!=
nil
{
...
...
@@ -174,47 +174,47 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// Client API for SSH service
// Client API for SSH
Service
service
type
SSHClient
interface
{
type
SSH
Service
Client
interface
{
// To forward 'git upload-pack' to Gitaly for SSH sessions
SSHUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH_SSHUploadPackClient
,
error
)
SSHUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH
Service
_SSHUploadPackClient
,
error
)
// To forward 'git receive-pack' to Gitaly for SSH sessions
SSHReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH_SSHReceivePackClient
,
error
)
SSHReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH
Service
_SSHReceivePackClient
,
error
)
}
type
sSHClient
struct
{
type
sSH
Service
Client
struct
{
cc
*
grpc
.
ClientConn
}
func
NewSSH
Client
(
cc
*
grpc
.
ClientConn
)
SSH
Client
{
return
&
sSHClient
{
cc
}
func
NewSSH
ServiceClient
(
cc
*
grpc
.
ClientConn
)
SSHService
Client
{
return
&
sSH
Service
Client
{
cc
}
}
func
(
c
*
sSH
Client
)
SSHUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH
_SSHUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SSH
_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.SSH
/SSHUploadPack"
,
opts
...
)
func
(
c
*
sSH
ServiceClient
)
SSHUploadPack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSHService
_SSHUploadPackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SSH
Service_serviceDesc
.
Streams
[
0
],
c
.
cc
,
"/gitaly.SSHService
/SSHUploadPack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
sSHSSHUploadPackClient
{
stream
}
x
:=
&
sSHS
erviceS
SHUploadPackClient
{
stream
}
return
x
,
nil
}
type
SSH_SSHUploadPackClient
interface
{
type
SSH
Service
_SSHUploadPackClient
interface
{
Send
(
*
SSHUploadPackRequest
)
error
Recv
()
(
*
SSHUploadPackResponse
,
error
)
grpc
.
ClientStream
}
type
sSHSSHUploadPackClient
struct
{
type
sSHS
erviceS
SHUploadPackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
sSHSSHUploadPackClient
)
Send
(
m
*
SSHUploadPackRequest
)
error
{
func
(
x
*
sSHS
erviceS
SHUploadPackClient
)
Send
(
m
*
SSHUploadPackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHUploadPackClient
)
Recv
()
(
*
SSHUploadPackResponse
,
error
)
{
func
(
x
*
sSHS
erviceS
SHUploadPackClient
)
Recv
()
(
*
SSHUploadPackResponse
,
error
)
{
m
:=
new
(
SSHUploadPackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -222,30 +222,30 @@ func (x *sSHSSHUploadPackClient) Recv() (*SSHUploadPackResponse, error) {
return
m
,
nil
}
func
(
c
*
sSH
Client
)
SSHReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSH
_SSHReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SSH
_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.SSH
/SSHReceivePack"
,
opts
...
)
func
(
c
*
sSH
ServiceClient
)
SSHReceivePack
(
ctx
context
.
Context
,
opts
...
grpc
.
CallOption
)
(
SSHService
_SSHReceivePackClient
,
error
)
{
stream
,
err
:=
grpc
.
NewClientStream
(
ctx
,
&
_SSH
Service_serviceDesc
.
Streams
[
1
],
c
.
cc
,
"/gitaly.SSHService
/SSHReceivePack"
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
x
:=
&
sSHSSHReceivePackClient
{
stream
}
x
:=
&
sSHS
erviceS
SHReceivePackClient
{
stream
}
return
x
,
nil
}
type
SSH_SSHReceivePackClient
interface
{
type
SSH
Service
_SSHReceivePackClient
interface
{
Send
(
*
SSHReceivePackRequest
)
error
Recv
()
(
*
SSHReceivePackResponse
,
error
)
grpc
.
ClientStream
}
type
sSHSSHReceivePackClient
struct
{
type
sSHS
erviceS
SHReceivePackClient
struct
{
grpc
.
ClientStream
}
func
(
x
*
sSHSSHReceivePackClient
)
Send
(
m
*
SSHReceivePackRequest
)
error
{
func
(
x
*
sSHS
erviceS
SHReceivePackClient
)
Send
(
m
*
SSHReceivePackRequest
)
error
{
return
x
.
ClientStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHReceivePackClient
)
Recv
()
(
*
SSHReceivePackResponse
,
error
)
{
func
(
x
*
sSHS
erviceS
SHReceivePackClient
)
Recv
()
(
*
SSHReceivePackResponse
,
error
)
{
m
:=
new
(
SSHReceivePackResponse
)
if
err
:=
x
.
ClientStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -253,38 +253,38 @@ func (x *sSHSSHReceivePackClient) Recv() (*SSHReceivePackResponse, error) {
return
m
,
nil
}
// Server API for SSH service
// Server API for SSH
Service
service
type
SSHServer
interface
{
type
SSHServ
iceServ
er
interface
{
// To forward 'git upload-pack' to Gitaly for SSH sessions
SSHUploadPack
(
SSH_SSHUploadPackServer
)
error
SSHUploadPack
(
SSH
Service
_SSHUploadPackServer
)
error
// To forward 'git receive-pack' to Gitaly for SSH sessions
SSHReceivePack
(
SSH_SSHReceivePackServer
)
error
SSHReceivePack
(
SSH
Service
_SSHReceivePackServer
)
error
}
func
RegisterSSHServ
er
(
s
*
grpc
.
Server
,
srv
SSH
Server
)
{
s
.
RegisterService
(
&
_SSH_serviceDesc
,
srv
)
func
RegisterSSHServ
iceServer
(
s
*
grpc
.
Server
,
srv
SSHService
Server
)
{
s
.
RegisterService
(
&
_SSH
Service
_serviceDesc
,
srv
)
}
func
_SSH_SSHUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SSHServ
er
)
.
SSHUploadPack
(
&
sSH
SSHUploadPackServer
{
stream
})
func
_SSH
Service
_SSHUploadPack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SSHServ
iceServer
)
.
SSHUploadPack
(
&
sSHService
SSHUploadPackServer
{
stream
})
}
type
SSH_SSHUploadPackServer
interface
{
type
SSH
Service
_SSHUploadPackServer
interface
{
Send
(
*
SSHUploadPackResponse
)
error
Recv
()
(
*
SSHUploadPackRequest
,
error
)
grpc
.
ServerStream
}
type
sSHSSHUploadPackServer
struct
{
type
sSHS
erviceS
SHUploadPackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
sSHSSHUploadPackServer
)
Send
(
m
*
SSHUploadPackResponse
)
error
{
func
(
x
*
sSHS
erviceS
SHUploadPackServer
)
Send
(
m
*
SSHUploadPackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHUploadPackServer
)
Recv
()
(
*
SSHUploadPackRequest
,
error
)
{
func
(
x
*
sSHS
erviceS
SHUploadPackServer
)
Recv
()
(
*
SSHUploadPackRequest
,
error
)
{
m
:=
new
(
SSHUploadPackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -292,25 +292,25 @@ func (x *sSHSSHUploadPackServer) Recv() (*SSHUploadPackRequest, error) {
return
m
,
nil
}
func
_SSH_SSHReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SSHServ
er
)
.
SSHReceivePack
(
&
sSH
SSHReceivePackServer
{
stream
})
func
_SSH
Service
_SSHReceivePack_Handler
(
srv
interface
{},
stream
grpc
.
ServerStream
)
error
{
return
srv
.
(
SSHServ
iceServer
)
.
SSHReceivePack
(
&
sSHService
SSHReceivePackServer
{
stream
})
}
type
SSH_SSHReceivePackServer
interface
{
type
SSH
Service
_SSHReceivePackServer
interface
{
Send
(
*
SSHReceivePackResponse
)
error
Recv
()
(
*
SSHReceivePackRequest
,
error
)
grpc
.
ServerStream
}
type
sSHSSHReceivePackServer
struct
{
type
sSHS
erviceS
SHReceivePackServer
struct
{
grpc
.
ServerStream
}
func
(
x
*
sSHSSHReceivePackServer
)
Send
(
m
*
SSHReceivePackResponse
)
error
{
func
(
x
*
sSHS
erviceS
SHReceivePackServer
)
Send
(
m
*
SSHReceivePackResponse
)
error
{
return
x
.
ServerStream
.
SendMsg
(
m
)
}
func
(
x
*
sSHSSHReceivePackServer
)
Recv
()
(
*
SSHReceivePackRequest
,
error
)
{
func
(
x
*
sSHS
erviceS
SHReceivePackServer
)
Recv
()
(
*
SSHReceivePackRequest
,
error
)
{
m
:=
new
(
SSHReceivePackRequest
)
if
err
:=
x
.
ServerStream
.
RecvMsg
(
m
);
err
!=
nil
{
return
nil
,
err
...
...
@@ -318,20 +318,20 @@ func (x *sSHSSHReceivePackServer) Recv() (*SSHReceivePackRequest, error) {
return
m
,
nil
}
var
_SSH_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.SSH"
,
HandlerType
:
(
*
SSHServer
)(
nil
),
var
_SSH
Service
_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"gitaly.SSH
Service
"
,
HandlerType
:
(
*
SSHServ
iceServ
er
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{},
Streams
:
[]
grpc
.
StreamDesc
{
{
StreamName
:
"SSHUploadPack"
,
Handler
:
_SSH_SSHUploadPack_Handler
,
Handler
:
_SSH
Service
_SSHUploadPack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
{
StreamName
:
"SSHReceivePack"
,
Handler
:
_SSH_SSHReceivePack_Handler
,
Handler
:
_SSH
Service
_SSHReceivePack_Handler
,
ServerStreams
:
true
,
ClientStreams
:
true
,
},
...
...
@@ -339,27 +339,28 @@ var _SSH_serviceDesc = grpc.ServiceDesc{
Metadata
:
"ssh.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"ssh.proto"
,
fileDescriptor6
)
}
var
fileDescriptor6
=
[]
byte
{
// 304 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xbc
,
0x52
,
0xcd
,
0x4e
,
0xf3
,
0x30
,
0x10
,
0xfc
,
0xfc
,
0xf5
,
0x47
,
0xea
,
0x36
,
0xe5
,
0xb0
,
0x94
,
0xaa
,
0x8a
,
0x00
,
0x55
,
0xe1
,
0x92
,
0x53
,
0x84
,
0xd2
,
0x67
,
0x40
,
0x2a
,
0x37
,
0xe4
,
0xa8
,
0xe7
,
0x10
,
0x6a
,
0x2b
,
0xb5
,
0xb0
,
0xea
,
0x60
,
0x3b
,
0xa8
,
0x95
,
0xe0
,
0x49
,
0x78
,
0x09
,
0x1e
,
0x11
,
0xc9
,
0x09
,
0x25
,
0x29
,
0xf4
,
0x08
,
0xb7
,
0xcc
,
0x4e
,
0x76
,
0x66
,
0xd6
,
0xbb
,
0x30
,
0x30
,
0x66
,
0x1d
,
0x15
,
0x5a
,
0x59
,
0x85
,
0xfd
,
0x5c
,
0xd8
,
0x4c
,
0xee
,
0x7c
,
0xcf
,
0xac
,
0x33
,
0xcd
,
0x59
,
0x55
,
0x0d
,
0xee
,
0x61
,
0x9c
,
0x24
,
0x8b
,
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,
0xfc
,
0xb3
,
0xf1
,
0xa7
,
0xdb
,
0xf0
,
0x2f
,
0x8e
,
0xb0
,
0x55
,
0xf4
,
0xe0
,
0x5f
,
0x48
,
0xae
,
0x09
,
0x2e
,
0xe1
,
0xa4
,
0x3d
,
0x1a
,
0x36
,
0xdb
,
0xbe
,
0xef
,
0xc3
,
0xbf
,
0x3c
,
0x46
,
0x37
,
0x65
,
0x1f
,
0xfa
,
0xee
,
0x6c
,
0xe7
,
0x1f
,
0x01
,
0x00
,
0x00
,
0xff
,
0xff
,
0xa3
,
0x3d
,
0xb9
,
0xce
,
0xd9
,
0x02
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"ssh.proto"
,
fileDescriptor9
)
}
var
fileDescriptor9
=
[]
byte
{
// 307 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xbc
,
0x52
,
0xcf
,
0x4e
,
0x32
,
0x31
,
0x10
,
0xff
,
0xfa
,
0x09
,
0x24
,
0x0c
,
0x8b
,
0x87
,
0x11
,
0x09
,
0x21
,
0x6a
,
0xc8
,
0x7a
,
0xe1
,
0x44
,
0x0c
,
0x3c
,
0x83
,
0x09
,
0xde
,
0x4c
,
0x1b
,
0xce
,
0xb8
,
0xd2
,
0xc9
,
0xd2
,
0xd8
,
0xd0
,
0xb5
,
0x2d
,
0x04
,
0x12
,
0x7d
,
0x12
,
0x1f
,
0xc4
,
0xd7
,
0x33
,
0xe9
,
0xae
,
0xb8
,
0x8b
,
0x72
,
0xd4
,
0xdb
,
0xce
,
0xfc
,
0x76
,
0x7e
,
0x7f
,
0x3a
,
0x03
,
0x4d
,
0xe7
,
0x96
,
0xa3
,
0xcc
,
0x1a
,
0x6f
,
0xb0
,
0x91
,
0x2a
,
0x9f
,
0xe8
,
0x5d
,
0x3f
,
0x72
,
0xcb
,
0xc4
,
0x92
,
0xcc
,
0xbb
,
0xf1
,
0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
0x54
,
0x90
,
0xdd
,
0xa8
,
0x05
,
0x21
,
0x87
,
0x76
,
0x65
,
0x53
,
0x78
,
0xf1
,
0x39
,
0xff
,
0xd3
,
0x89
,
0xf4
,
0x2f
,
0x8f
,
0xa0
,
0x79
,
0x82
,
0xf8
,
0xdf
,
0x90
,
0xdd
,
0x30
,
0x9c
,
0xc1
,
0x69
,
0x35
,
0x21
,
0x96
,
0xc7
,
0xbe
,
0xaf
,
0xa5
,
0x7f
,
0x75
,
0x0c
,
0x2e
,
0xd3
,
0x3e
,
0x36
,
0xc2
,
0xf5
,
0x4e
,
0x3e
,
0x02
,
0x00
,
0x00
,
0xff
,
0xff
,
0x79
,
0x5b
,
0x32
,
0x2b
,
0xe0
,
0x02
,
0x00
,
0x00
,
}
vendor/vendor.json
View file @
9136ca98
...
...
@@ -146,12 +146,12 @@
"revisionTime"
:
"2016-11-17T07:43:51Z"
},
{
"checksumSHA1"
:
"
6SVQZeJ2M//eFTZwDe1ArP7RF8g
="
,
"checksumSHA1"
:
"
kvKqkz5AAO34W1mB4t9bAZdPGEw
="
,
"path"
:
"gitlab.com/gitlab-org/gitaly-proto/go"
,
"revision"
:
"e
302a46f7ccd889bfaa683d2ba06ffe06ca5875b
"
,
"revisionTime"
:
"2017-0
6-12T18:49:50
Z"
,
"version"
:
"v0.
9
.0"
,
"versionExact"
:
"v0.
9
.0"
"revision"
:
"e
61d1eab6f19e153379184d378c72917b6d03dc3
"
,
"revisionTime"
:
"2017-0
7-07T23:49:54
Z"
,
"version"
:
"v0.
15
.0"
,
"versionExact"
:
"v0.
15
.0"
},
{
"checksumSHA1"
:
"dUHJbKas746n5fLzlwxHb6FOCxs="
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment