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
77986088
Commit
77986088
authored
Oct 11, 2018
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a Gitaly NamespaceClient
parent
e510462d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
internal/gitaly/gitaly.go
internal/gitaly/gitaly.go
+9
-0
internal/gitaly/namespace.go
internal/gitaly/namespace.go
+10
-0
No files found.
internal/gitaly/gitaly.go
View file @
77986088
...
@@ -51,6 +51,15 @@ func NewRepositoryClient(server Server) (*RepositoryClient, error) {
...
@@ -51,6 +51,15 @@ func NewRepositoryClient(server Server) (*RepositoryClient, error) {
return
&
RepositoryClient
{
grpcClient
},
nil
return
&
RepositoryClient
{
grpcClient
},
nil
}
}
func
NewNamespaceClient
(
server
Server
)
(
*
NamespaceClient
,
error
)
{
conn
,
err
:=
getOrCreateConnection
(
server
)
if
err
!=
nil
{
return
nil
,
err
}
grpcClient
:=
pb
.
NewNamespaceServiceClient
(
conn
)
return
&
NamespaceClient
{
grpcClient
},
nil
}
func
NewDiffClient
(
server
Server
)
(
*
DiffClient
,
error
)
{
func
NewDiffClient
(
server
Server
)
(
*
DiffClient
,
error
)
{
conn
,
err
:=
getOrCreateConnection
(
server
)
conn
,
err
:=
getOrCreateConnection
(
server
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
internal/gitaly/namespace.go
0 → 100644
View file @
77986088
package
gitaly
import
(
pb
"gitlab.com/gitlab-org/gitaly-proto/go"
)
// NamespaceClient encapsulates NamespaceService calls
type
NamespaceClient
struct
{
pb
.
NamespaceServiceClient
}
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