Comments (3)
- See AddHandler and events.go - you can add funcs which take these as the only argument and they'll be passed when something happens, meaning you can log anything you'd like. There's also the Validator which can verify it's a topic you handle.
- Yes, see the
store
package. This is made specifically to allow something like MySQL, SQLite, etc to store records. Note that these aren't implemented by default as sqlite, at least, would require cgo to build and complicating the package more. Third party packages would be greatly appreciated for implementations of these. - Yep! They must validate with the hub.challenge, See this code which handles verification of challenges against the endpoint. The subscriptions are not stored until verified.
- The publishing spec is weird in general, but requires
hub.topic
to specify which topic it's updating. The ContentProvider type provides a way for the hub to retrieve content if you had something custom, or simply pass through data if you'd like it to. The default is to send an HTTP GET request to the topic url. - I'll look into this, seems to be a bug with the lease time. I added an override to the DecodeHook for strings, seems like I didn't add one for integers.
from websub-server.
I've created a basic, albeit untested sql store. I'll likely test it this weekend, but figured I'd push it up into the feature/mysql branch for now!
Edit: Tested (basic) sql store added to the main branch under store/database!
from websub-server.
Thanks a lot, it's clear for me now :) 👍
from websub-server.
Related Issues (2)
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 websub-server.