Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
523e8715
Commit
523e8715
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
being nit picky
parent
a5ce53c3
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!24
Resolve "Need common configuration storage"
,
!18
Develop
This commit is part of merge request
!24
. Comments created here will be created in the context of that merge request.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nucleus/controller.go
+1
-1
1 addition, 1 deletion
nucleus/controller.go
nucleus/interfaces/database.go
+1
-1
1 addition, 1 deletion
nucleus/interfaces/database.go
with
2 additions
and
2 deletions
nucleus/controller.go
+
1
−
1
Edit
View file @
523e8715
...
@@ -54,7 +54,7 @@ func (c Core) Init(socket, filename string) {
...
@@ -54,7 +54,7 @@ func (c Core) Init(socket, filename string) {
c
.
config
.
CliSocket
=
socket
c
.
config
.
CliSocket
=
socket
}
}
c
.
database
=
interfaces
.
NewDatabaseClient
(
c
.
config
.
DatabaseSocket
,
c
.
config
.
DatabaseUser
,
c
.
config
.
DatabasePassword
,
c
.
config
.
DatabaseCrypto
)
c
.
database
=
interfaces
.
New
Mock
DatabaseClient
(
c
.
config
.
DatabaseSocket
,
c
.
config
.
DatabaseUser
,
c
.
config
.
DatabasePassword
,
c
.
config
.
DatabaseCrypto
)
}
}
func
(
c
Core
)
Shutdown
()
{
func
(
c
Core
)
Shutdown
()
{
...
...
This diff is collapsed.
Click to expand it.
nucleus/interfaces/database.go
+
1
−
1
Edit
View file @
523e8715
...
@@ -10,6 +10,6 @@ type MockDatabase struct {
...
@@ -10,6 +10,6 @@ type MockDatabase struct {
func
(
db
MockDatabase
)
DropTables
()
{
func
(
db
MockDatabase
)
DropTables
()
{
}
}
func
NewDatabaseClient
(
uri
,
username
,
password
string
,
encrypted
bool
)
Database
{
func
New
Mock
DatabaseClient
(
uri
,
username
,
password
string
,
encrypted
bool
)
Database
{
return
MockDatabase
{}
return
MockDatabase
{}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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