Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
elixxir
client
Commits
4673143e
Commit
4673143e
authored
6 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Updated README, removed nick CLI argument
parent
e48177b8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+28
-4
28 additions, 4 deletions
README.md
cmd/root.go
+0
-4
0 additions, 4 deletions
cmd/root.go
with
28 additions
and
8 deletions
README.md
+
28
−
4
View file @
4673143e
...
...
@@ -12,21 +12,45 @@ In project directory, run `go run main.go`
Required Args:
`-
s
<
STR
IN
G
>`
: Address of server to which messages will be sent
`-
n
<IN
T
>`
: Number of nodes in the cMix network being connected to
`-i <INT>`
: User ID to log in as
Optional Args:
`-g <STRING>`
: Address of the gateway to connect to (Reqiured if not specified
in the config file)
`-d <INT>`
: User ID of the user to send messages to
`-m <STRING>`
: Message to be sent
`-v`
: Boolean indicating verbose logging
`-v`
: Enables verbose logging when specified
`-V`
: Show version information
`-f`
: String containing path of file to store the session into.
If not included it will use Ram Storage
`-n`
: Unsigned Integer indicating the number of nodes in the system
`--noratchet`
: Disables ratcheting when specified
`--noBlockingTransmission`
: Disables transmission frequency limiting when
specified
Example Configuration File
==
`-f`
: String containing path of file to store the session into. If not included it will use Ram Storage
```
yaml
logPath
:
"
client.log"
numnodes
:
3
sessionstore
:
"
session.data"
noratchet
:
true
textcolor
:
-1
gateways
:
-
"
gateway-0.prod.cmix.rip:11420"
-
"
gateway-1.prod.cmix.rip:11420"
-
"
gateway-2.prod.cmix.rip:11420"
```
Preparation to Build
==
...
...
This diff is collapsed.
Click to expand it.
cmd/root.go
+
0
−
4
View file @
4673143e
...
...
@@ -31,7 +31,6 @@ var numNodes uint
var
sessionFile
string
var
noRatchet
bool
var
dummyFrequency
float64
var
nick
string
var
noBlockingTransmission
bool
var
rateLimiting
uint32
var
showVer
bool
...
...
@@ -149,7 +148,6 @@ var rootCmd = &cobra.Command{
}
else
{
cmd
.
MarkPersistentFlagRequired
(
"userid"
)
cmd
.
MarkPersistentFlagRequired
(
"numnodes"
)
cmd
.
MarkPersistentFlagRequired
(
"serveraddr"
)
}
var
dummyPeriod
time
.
Duration
...
...
@@ -289,8 +287,6 @@ func init() {
rootCmd
.
PersistentFlags
()
.
Uint64VarP
(
&
userId
,
"userid"
,
"i"
,
0
,
"UserID to sign in as"
)
rootCmd
.
PersistentFlags
()
.
StringVarP
(
&
nick
,
"nick"
,
""
,
""
,
"Nickname to register as"
)
rootCmd
.
PersistentFlags
()
.
StringVarP
(
&
gwAddr
,
"gwaddr"
,
"g"
,
""
,
"Gateway address to send messages to"
)
// TODO: support this negotiating separate keys with different servers
...
...
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