jupiter

Jupiter是斗鱼开源的面向服务治理的Golang微服务框架

Github stars Tracking Chart

GoTest
codecov
go.dev reference
Go Report Card
license

JUPITER: Governance-oriented Microservice Framework

Introduction

JUPITER is a governance-oriented microservice framework, which is being used for years at Douyu.

Documentation

See the 中文文档 for the Chinese documentation.

Quick Start

func main() {
	var app jupiter.Application
	app.Startup()
	app.Serve(startHTTPServer())
	app.Serve(startGRPCServer())
	app.Schedule(startWorker())
	app.Run()
}

func startHTTPServer() server.Server {
	server := xecho.DefaultConfig().Build()
	server.GET("/hello", func(ctx echo.Context) error {
		return ctx.JSON(200, "Gopher Wuhan")
	})
	return server
}

func startGRPCServer() server.Server {
	server := xgrpc.DefaultConfig().Build()
	helloworld.RegisterGreeterServer(server.Server, new(greeter.Greeter))
	return server
}

func startWorker() worker.Worker {
	cron := xcron.DefaultConfig().Build()
	cron.Schedule(xcron.Every(time.Second*10), xcron.FuncJob(func() error {
		return nil
	}))
	return cron
}

More Example:

Bugs and Feedback

For bug report, questions and discussions please submit an issue.

Contributing

Contributions are always welcomed! Please see CONTRIBUTING for detailed guidelines.

You can start with the issues labeled with good first issue.

Contact

  • DingTalk:
  • Wechat:

Main metrics

Overview
Name With Ownerdouyu/jupiter
Primary LanguageGo
Program languageShell (Language Count: 5)
Platform
License:Apache License 2.0
所有者活动
Created At2020-02-27 12:50:47
Pushed At2025-05-26 15:25:55
Last Commit At2025-01-17 10:47:11
Release Count76
Last Release Namev0.11.19 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count4.5k
Watchers Count95
Fork Count706
Commits Count881
Has Issues Enabled
Issues Count211
Issue Open Count0
Pull Requests Count633
Pull Requests Open Count6
Pull Requests Close Count316
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private