go-dandelion

module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0

README

中文|English

About go-dandelion

The go-dandelion project aims to provide developers with a project framework that integrates various components, making it easy to build projects and improve development efficiency. It eliminates the need to spend time on integrating different components, allowing developers to focus on business development.

Go Go Report Card codecov MIT license Release Go.Dev reference

Security Status

Integration

Features

  • Quickly create RPC services and HTTP services.
  • Initialize MySQL, Redis, logger, and trace links quickly through configuration.
  • Integrated logging, distributed tracing, rate limiting, circuit breaking, service registration, service discovery, and other features.
  • Customizable middleware and plugins.

go-dandelion-cli Usage

1. Installation

go get github.com/team-dandelion/go-dandelion/go-dandelion-cli@latest
go install github.com/team-dandelion/go-dandelion/go-dandelion-cli@latest

2. Create a Project

Create a local project directory and create the corresponding project based on the prompts.

# Create an application
go-dandelion-cli app -n go-admin-example
# Enter the application directory
cd go-admin-example
# Build the service
go-dandelion-cli build -n go-admin-example
Enter the type of service to create, enter a number (1 for rpc, 2 for http): 1
RPC service name: example-server
Initialize MySQL (y/n): y
Initialize Redis (y/n): y
Initialize logger (y/n): y
Initialize trace links (y/n): y

3. Run the Project

cd example-server
# Enter the service directory
go build -o example-server
# Run the service
./example-server server

🔥Contributors

⭐ Star the project

if you find it interesting!

Open Source

Apache License, Version 2.0

Jump to

Keyboard shortcuts

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