Account
This is the Account service
graph LR;
subgraph µServices
A(fa:fa-user Account µS)--gRPC-->G(Greeter µS) & E(Emailer µS);
A & G & E -.-> L[Logger]
end
A ==lookup==> SR[[fa:fa-database Service Registry]];
style SR fill:#f9f,stroke:#333,stroke-width:4px
Implements basic CRUD API
Multiple handlers, repositories, subscribers
Publishing events
GORM data access
Config Managment
Custom Logging
Configuration
FQDN: mkit.service.account
Type: service
Alias: account
Usage
A Makefile is included for convenience
Build the binary
make build TARGET=account TYPE=service VERSION=v0.1.1
Run the service
make run-account
make run-account ARGS="--server_address=:8080"
# or
go run service/account/main.go service/account/plugin.go
Build a docker image
make docker TARGET=account TYPE=service VERSION=v0.1.1
Test the service
micro call mkit.service.account UserService.Create \
'{"username": "sumo", "firstName": "sumo", "lastName": "demo", "email": "sumo@demo.com"}'
micro call mkit.service.account UserService.Create \
'{"username": "sumo1", "firstName": "sumo1", "lastName": "demo1", "email": "sumo1@demo.com"}'
micro call mkit.service.account UserService.List '{}'
Last updated
Was this helpful?