Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
4e2b9d64
Commit
4e2b9d64
authored
Jun 15, 2021
by
Sietse Ringers
Browse files
refactor: rename keyshare configuration functions
parent
3fb3ca12
Changes
2
Hide whitespace changes
Inline
Side-by-side
irma/cmd/keyshare-myirma.go
View file @
4e2b9d64
...
...
@@ -12,7 +12,7 @@ var myirmaServerCmd = &cobra.Command{
Use
:
"myirmaserver"
,
Short
:
"IRMA keyshare MyIRMA server"
,
Run
:
func
(
command
*
cobra
.
Command
,
args
[]
string
)
{
conf
:=
configureMyirma
d
(
command
)
conf
:=
configureMyirma
Server
(
command
)
// Create main server
myirmaServer
,
err
:=
myirmaserver
.
New
(
conf
)
...
...
@@ -83,7 +83,7 @@ func init() {
flags
.
Lookup
(
"verbose"
)
.
Header
=
`Other options`
}
func
configureMyirma
d
(
cmd
*
cobra
.
Command
)
*
myirmaserver
.
Configuration
{
func
configureMyirma
Server
(
cmd
*
cobra
.
Command
)
*
myirmaserver
.
Configuration
{
readConfig
(
cmd
,
"myirmaserver"
,
"myirmaserver"
,
[]
string
{
"."
,
"/etc/myirmaserver/"
},
nil
)
// And build the configuration
...
...
irma/cmd/keyshare-server.go
View file @
4e2b9d64
...
...
@@ -13,7 +13,7 @@ var keyshareServerCmd = &cobra.Command{
Use
:
"server"
,
Short
:
"IRMA keyshare server"
,
Run
:
func
(
command
*
cobra
.
Command
,
args
[]
string
)
{
conf
:=
configureKeyshare
d
(
command
)
conf
:=
configureKeyshare
Server
(
command
)
// Create main server
keyshareServer
,
err
:=
keyshareserver
.
New
(
conf
)
...
...
@@ -82,7 +82,7 @@ func init() {
flags
.
Lookup
(
"verbose"
)
.
Header
=
`Other options`
}
func
configureKeyshare
d
(
cmd
*
cobra
.
Command
)
*
keyshareserver
.
Configuration
{
func
configureKeyshare
Server
(
cmd
*
cobra
.
Command
)
*
keyshareserver
.
Configuration
{
readConfig
(
cmd
,
"keyshareserver"
,
"keyshareserver"
,
[]
string
{
"."
,
"/etc/keyshareserver"
},
nil
)
// And build the configuration
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment