account

command
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 18 Imported by: 0

README

Account Service

This is the Account service

showcase

  1. Implements basic CRUD API
  2. Multiple handlers, repositories, subscribers
  3. Publishing events
  4. GORM data access
  5. Config Managment
  6. 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 '{}'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto
entities
Package entities is a generated protocol buffer package.
Package entities is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL