candi

package module
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

Candi, a framework for Membangun Candi project in Golang

codecov

Made with

golang logo docker logo rest logo graphql logo grpc logo kafka logo

Install CLI

$ go get -u pkg.agungdwiprasetyo.com/candi/cmd/candi

Flag options:

$ candi --help
Usage of candi:
  -libraryname string
        define library name (default "pkg.agungdwiprasetyo.com/candi")
  -output string
        directory to write project to (default is service name)
  -packageprefix string
        define package prefix
  -protooutputpkg string
        define generated proto output target (if using grpc), with prefix is your go.mod
  -scope string
        set scope (1 for init service, 2 for add module(s)
  -servicename string
        define service name
  -withgomod
        generate go.mod or not (default true)

Create new service or add module in existing service

$ candi

Build and run service

$ cd {{service_name}}
$ make run

If include GRPC handler, run $ make proto for generate rpc files from proto (must install protoc compiler min version libprotoc 3.14.0)

Service handlers example:

Todo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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