Comments (7)
I agree with you @minwoox 👍
Beside that, we need to add metric support, maybe via: https://github.com/armon/go-metrics. I will make a PR after new year holiday 🤔
from centraldogma-go.
Found that there's a way that the client can use h2c. So I think I can just replace to use HTTP/2 client. :)
from centraldogma-go.
@minwoox I really love your idea of creating new api (more New*
methods) for additional HTTP/2 (with/without TLS) via h2c. The library is stable and easy to use: https://godoc.org/golang.org/x/net/http2#Transport
And it's also convenient if we let user pass his created-initialized client:
func New(client *http.Client)
So with HTTP/2 support like your suggestion, user has various way to initialize central dogma client. He could choose HTTP/1, HTTP/2 or passing their own http.Client
👍
from centraldogma-go.
func New(client *http.Client)
We definitely need this, I will add it, thank you!
As for the HTTP/1 and HTTP/2, I was going to leave the HTTP/1 client.
But it turns out that Golang supports h2c
as well, so we can do both cleartext and encrypted communication using HTTP/2.
Because of that, I couldn't find a reason to keep the HTTP/1 client. Central Dogma server supports HTTP/2 and a user uses this client only to communicate with the server. So I want to completely remove it.
Please let me know if we have to keep it or not.
from centraldogma-go.
OK to support HTTP/2 only IMO, although it'd be nice to have HTTP/1 support.
from centraldogma-go.
I will make a PR after new year holiday 🤔
Great. I'm looking forward to it. 👍
from centraldogma-go.
Fixed via #20
from centraldogma-go.
Related Issues (13)
- Provide the API mergeFiles
- Increase test coverage
- Improving documentation HOT 1
- Unable to create repository. HOT 4
- dogma returns error invalid json when called dogma cat --jsonpath HOT 8
- Make Go client tolerant to replication lag HOT 4
- Feature Request: Add `--listener` option to `dogma watch` command
- Add Integration test
- Support --recursive to download all files under directory. HOT 1
- Utilize Multi Module Workspaces
- Provide a way to upload a directory HOT 1
- Modernize urfave-cli HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from centraldogma-go.