Discover Packages
github.com/usebraid/braid
internal
server
ingest
package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Nov 18, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 22
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ingest serves the device-authenticated data path: POST /v1/ingest and GET /v1/files.
MaxConcurrentIngest bounds in-flight ingest requests per server.
MaxGlobalPerUser bounds the global slots one user may hold at once.
MaxIngestPerDevice bounds in-flight ingest requests per device (one is the daemon's normal case).
RequireDevice authenticates a device token, then checks scope, protocol version and rate limit (in that order).
type Device struct {
TokenID, DeviceID, UserID string
Scopes []string
}
Device is the authenticated caller; every field comes from the token row, never from the request.
DeviceFrom returns the device placed in ctx by RequireDevice.
Handler serves the ingest endpoints.
New returns a Handler on d.
Register mounts the endpoints; both need scope ingest:write.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.