Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
099d3259
There was an error fetching the commit references. Please try again later.
Commit
099d3259
authored
4 years ago
by
Akshay Bharambe
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes
parent
e74b4924
2 merge requests
!180
Mep release 07042020
,
!175
Add: Graph Database support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalmdl/dgraph/dgraph.go
+13
-11
dalmdl/dgraph/dgraph.go
with
13 additions
and
11 deletions
dalmdl/dgraph/dgraph.go
+
13
−
11
View file @
099d3259
...
...
@@ -13,13 +13,14 @@ import (
)
type
Host
struct
{
Name
string
`json:"hostName"`
Server
string
`json:"server"`
Port
int
`json:"port"`
Name
string
`json:"hostName"`
Server
string
`json:"server"`
Port
int
`json:"port"`
IsDefault
bool
`json:"isDefault"`
IsDisabled
bool
`json:"IsDisabled"`
// UserName string
// Password string
IsDefault
bool
`json:"isDefault"`
IsDisabled
bool
`json:"IsDisabled"`
}
type
Instance
struct
{
...
...
@@ -112,6 +113,8 @@ func InitInstances(configs []Host) error {
}
}
configured
=
true
return
nil
}
...
...
@@ -255,12 +258,11 @@ func (dg *DGraphDAO) DropEdge(ctx context.Context, uid string, predicates ...str
}
func
bindDgraphServerWithPort
(
server
string
,
port
int
)
string
{
// if port is empty then use
d
default port
27017
& bind to server ip
var
serverURI
string
// if port is empty then use default port
9080(GRPC Port)
& bind to server ip
if
port
<=
0
||
strings
.
TrimSpace
(
strconv
.
Itoa
(
port
))
==
""
{
serverURI
=
server
+
":9080"
}
else
{
serverURI
=
server
+
":"
+
strconv
.
Itoa
(
port
)
return
server
+
":9080"
}
return
serverURI
return
server
+
":"
+
strconv
.
Itoa
(
port
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets