gotd / contrib Goto Github PK
View Code? Open in Web Editor NEWContrib package for gotd.
License: MIT License
Contrib package for gotd.
License: MIT License
For now, auth
package contains only Hashicorp Vault session and credential storage.
It would be great to support more storages, Redis for example.
Add starlark
bindings, it can be useful to write Python-like scripts.
I think it would be nice to add implementation of AuthFlow
which uses dialog and push system API.
See https://github.com/gen2brain/dlgs and https://github.com/gen2brain/beeep
It would be nice to add expect library which designed to use with bots.
It useful for making bot tests and automatizing user-bot interaction.
gotd
's http_range
does not currently parse range headers of the form
content-range: bytes 100-200/1048576000
that come from 206
partial responses. Are we interested in a separate method that parses these? I can write one up.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range - even the first example there isn't parsed by http_range right now.
Generate something like
type Config struct {
value atomic.Value
}
func (c *Config) Load() tg.Config {
v, _ := value.Load().(tg.Config)
return v
}
func (c *Config) Store(cfg tg.Config) {
value.Store(cfg)
}
...
and
type Config struct {
value *atomic.Config
ready chan struct{}
}
func (c Config) Await(ctx context.Context) (tg.Config, error) {
select {
case <-ctx.Done():
return tg.Config{}, ctx.Err()
case <-c.ready:
return value.Load(), nil
}
}
We can write a simple gRPC proxy for gotd to make usage of MTProto API very easy for any language, which supports gRPC.
Add logging middlewares for telegram.UpdateHandler
and tg.Invoker
It would be nice to add metric middleware for tg.Invoker
and telegram.UpdateHandler
.
See https://github.com/armon/go-metrics.
See https://github.com/prometheus/client_golang.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.