-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(micro): testing cmux with greeter project
- Loading branch information
Showing
20 changed files
with
402 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ func main() { | |
username := flag.String("username", "sumo", "username of user to be create") | ||
email := flag.String("email", "[email protected]", "email of user to be create") | ||
limit := flag.Uint64("limit", 10, "Limit number of results") | ||
flag.Parse() | ||
|
||
log.Debug().Str("username", *username).Str("email", *email).Uint64("limit", *limit).Msg("Flags Using:") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ Run the service | |
|
||
```bash | ||
make run-account | ||
make run-account ARGS="--server_address=:8080" | ||
# or | ||
go run service/account/main.go service/account/plugin.go | ||
``` | ||
|
@@ -41,3 +40,13 @@ Build a docker image | |
```bash | ||
make docker TARGET=account TYPE=service VERSION=v0.1.1 | ||
``` | ||
|
||
Test the service | ||
|
||
```bash | ||
micro call mkit.service.account UserService.Create \ | ||
'{"username": "sumo", "firstName": "sumo", "lastName": "demo", "email": "[email protected]"}' | ||
micro call mkit.service.account UserService.Create \ | ||
'{"username": "sumo1", "firstName": "sumo1", "lastName": "demo1", "email": "[email protected]"}' | ||
micro call mkit.service.account UserService.List '{}' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.