sanchin

package module
v0.0.0-...-a89d410 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

SANCHIN: Governance-oriented Microservice Framework

logo

GoTest codecov go.dev reference Go Report Card license

Introduction

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

Online Demo

Sanchin Console (Yiqi)

Username: admin
Password: admin

Documentation

See the 中文文档 for the Chinese documentation.

Requirements

  • Go version >= 1.19
  • Docker

Quick Start

  1. Install sanchin toolkit
  2. Create example project from sanchin-template
  3. Download go mod dependencies
  4. Run the example project with sanchin toolkit
  5. Just code yourself :-)
go install gitee.com/chanuei/sanchin/cmd/sanchin@latest
sanchin new example-go
cd example-go
go mod tidy
docker-compose -f test/docker-compose.yml up -d
sanchin run -c cmd/exampleserver/.sanchin.toml

Learn More:

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//StageAfterStop after app stop
	StageAfterStop uint32 = uint32(hooks.Stage_AfterStop)
	//StageBeforeStop before app stop
	StageBeforeStop = uint32(hooks.Stage_BeforeStop)
)
View Source
var WithConfigParser = application.WithConfigParser
View Source
var WithDisable = application.WithDisable

Functions

This section is empty.

Types

type Application

type Application = application.Application

Application is the framework's instance, it contains the servers, workers, client and configuration settings. Create an instance of Application, by using &Application{}

type Disable

type Disable = application.Disable
const (
	DisableParserFlag      Disable = application.DisableParserFlag
	DisableLoadConfig      Disable = application.DisableLoadConfig
	DisableDefaultGovernor Disable = application.DisableDefaultGovernor
)

type Option

type Option = application.Option

Directories

Path Synopsis
cmd
pkg
util/xbuffer
Package buffer provides an implementation of an unbounded buffer.
Package buffer provides an implementation of an unbounded buffer.
proto
helloworld/v1
Package helloworldv1 is a reverse proxy.
Package helloworldv1 is a reverse proxy.

Jump to

Keyboard shortcuts

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