jupiter

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

Github星跟踪图

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:

主要指标

概览
名称与所有者douyu/jupiter
主编程语言Go
编程语言Shell (语言数: 5)
平台
许可证Apache License 2.0
所有者活动
创建于2020-02-27 12:50:47
推送于2025-07-13 23:41:21
最后一次提交2025-07-03 12:18:58
发布数77
最新版本名称v0.11.20 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数4.5k
关注者数93
派生数707
提交数882
已启用问题?
问题数211
打开的问题数0
拉请求数634
打开的拉请求数4
关闭的拉请求数322
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?