ngmoco/falcore
소개
Go용 모듈형 HTTP 서버 프레임워크입니다.
시스템 및 인프라What you can do
- Modular and flexible design
- Hot restart hooks for zero-downtime deploys
- Builtin statistics framework
- Builtin logging framework
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFalcore has Moved
The Fitstar fork has tons of updates that break backwards compatibility so we are leaving this repo live for reference of the older interfaces. It will no longer be maintained here, though so you should upgrade to the Fitstar fork.
Falcore
Falcore is a framework for constructing high performance, modular HTTP servers in Golang.
GoPkgDoc hosts code documentation for this project.
Features
- Modular and flexible design
- Hot restart hooks for zero-downtime deploys
- Builtin statistics framework
- Builtin logging framework
Design
Falcore is a filter pipeline based HTTP server library. You can build arbitrarily complicated HTTP services by chaining just a few simple components:
RequestFiltersare the core component. A request filter takes a request and returns a response or nil. Request filters can modify the request as it passes through.ResponseFilterscan modify a response on its way out the door. An example response filter,compression_filter, is included. It appliesdeflateorgzipcompression to the response if the request supplies the proper headers.Pipelinesform one of the two logic components. A pipeline contains a list ofRequestFiltersand a list ofResponseFilters. A request is processed through the request filters, in order, until one returns a response. It then passes the response through each of the response filters, in order. A pipeline is a validRequestFilter.Routersallow you to conditionally follow different pipelines. A router chooses from a set of pipelines. A few basic routers are included, including routing by hostname or requested path. You can implement your own router by implementingfalcore.Router.Routersare notRequestFilters, but they can be put into pipelines.
Building
Falcore is currently targeted at Go 1.0. If you're still using Go r.60.x, you can get the last working version of falcore for r.60 using the tag last_r60.
Check out the project into $GOROOT/src/pkg/github.com/ngmoco/falcore. Build using the go build command.
Usage
See the examples directory for usage examples.
HTTPS
To use falcore to serve HTTPS, simply call ListenAndServeTLS instead of ListenAndServe. If you want to host SSL and nonSSL out of the same process, simply create two instances of falcore.Server. You can give them the same pipeline or share pipeline components.
Maintainers
Contributors
관련 프로젝트 살펴보기
불러오는 중…