moke-kit

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT

README

moke-kit

Go Report Card Go Reference Release

What is moke-kit?

moke-kit is a toolkit for building a Domain-Driven Hexagon microservices/monolithic in Go. You can develop as a monolithic service and deploy it as a microservice. Just like building with LEGO, you can assemble the service as you like.

Diagram

moke-kit

Features

  • Inversion of control with uber/fx,assemble your service as you like.
  • Builtin TLS,mTLS to build Zero Trust security.
  • Builtin middlewares (rate limit, open telemetry, auth override,logging, panic recovery, etc.).
  • Builtin Cache-Aside pattern for orm and nosql.
  • Builtin Compare-and-swap to ensure db update consistency.
  • Command client to interact with the server for independent testing.
  • One command to generate proto, grpc, gateway, swagger and client code with buf.

Builtin Kits

Getting started

  • install gonew:
   go install golang.org/x/tools/cmd/gonew@latest
  • create a new project:
   gonew github.com/gstones/moke-layout your.domain/myprog

Jump to

Keyboard shortcuts

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