Documentation
¶
Overview ¶
Package gox is an opinionated, batteries-included base for Go services.
A plain HTTP service imports only this package. Heavy integrations (Postgres, Supabase, JWT, server-rendered HTML) live in their own subpackages and are opted into by importing them and passing their Enable() option to New.
Index ¶
- Constants
- func Aborted(format string, args ...any) *errors.Error
- func AlreadyExists(format string, args ...any) *errors.Error
- func Canceled(format string, args ...any) *errors.Error
- func ClientIP(r *http.Request) string
- func DataLoss(format string, args ...any) *errors.Error
- func DeadlineExceeded(format string, args ...any) *errors.Error
- func Decode(r *http.Request, v any) error
- func EncodeCursor(v any) (string, error)
- func Error(w http.ResponseWriter, r *http.Request, err error)
- func FailedPrecondition(format string, args ...any) *errors.Error
- func HTTPStatus(err error) int
- func Internal(format string, args ...any) *errors.Error
- func InvalidArgument(format string, args ...any) *errors.Error
- func JSON(w http.ResponseWriter, status int, v any) error
- func LoadConfig(name string, dst any) error
- func MustValue[T any](a *App, key any, accessor, option string) T
- func NewError(code Code, msg string) *errors.Error
- func NotFound(format string, args ...any) *errors.Error
- func OutOfRange(format string, args ...any) *errors.Error
- func PermissionDenied(format string, args ...any) *errors.Error
- func ProblemJSON(w http.ResponseWriter, r *http.Request, status int, env Envelope) bool
- func RequestID(r *http.Request) string
- func ResourceExhausted(format string, args ...any) *errors.Error
- func Unauthenticated(format string, args ...any) *errors.Error
- func Unavailable(format string, args ...any) *errors.Error
- func Unimplemented(format string, args ...any) *errors.Error
- func Unknown(format string, args ...any) *errors.Error
- func Value[T any](a *App, key any) (T, bool)
- func WrapError(cause error, code Code, msg string) *errors.Error
- type App
- func (a *App) Add(cs ...lifecycle.Component)
- func (a *App) Config() BaseConfig
- func (a *App) ConfigPrefix() string
- func (a *App) HTTPClient() *http.Client
- func (a *App) HandleFunc(pattern string, h http.HandlerFunc)
- func (a *App) HasHTTP() bool
- func (a *App) HasHTTPClient() bool
- func (a *App) Health() *health.Registry
- func (a *App) Log() *slog.Logger
- func (a *App) MapError(err error) error
- func (a *App) Mux() *http.ServeMux
- func (a *App) Name() string
- func (a *App) Run() error
- func (a *App) RunContext(ctx context.Context) error
- func (a *App) SSE() *SSEHub
- func (a *App) Value(key any) (any, bool)
- type BaseConfig
- type Builder
- func (b *Builder) Component(stage Stage, fn func(a *App) (lifecycle.Component, error))
- func (b *Builder) ConfigSection(name string, dst any, declaredBy string)
- func (b *Builder) ErrorRenderer(fn httpx.ErrorRenderer)
- func (b *Builder) Finish(fn func(a *App) error)
- func (b *Builder) Middleware(mw ...Middleware)
- func (b *Builder) Set(key, value any)
- func (b *Builder) Setup(fn func(a *App) error)
- type CORSConfig
- type Code
- type Envelope
- type ErrorMapper
- type ErrorRenderer
- type HTTPOption
- type Middleware
- type Option
- func Component(c lifecycle.Component) Option
- func HTTP(opts ...HTTPOption) Option
- func HTTPClient() Option
- func Periodic(name string, every time.Duration, fn func(context.Context) error) Option
- func WithAuth(mw Middleware) Option
- func WithConfig(dst any) Option
- func WithConfigPrefix(p string) Option
- func WithEnvAlias(name, alias string) Option
- func WithErrorMapper(m ErrorMapper) Option
- func WithErrorRenderer(fn ErrorRenderer) Option
- func WithLogger(l *slog.Logger) Option
- func WithMiddleware(mw ...Middleware) Option
- func WithShutdownTimeout(d time.Duration) Option
- func WithVersion(v string) Option
- func WithoutAdminServer() Option
- type Page
- type SPAConfig
- type SSEConfig
- type SSEHub
- type SSETransport
- type SSEUpdate
- type Stage
Constants ¶
const ( CodeOK = errors.CodeOK CodeCanceled = errors.CodeCanceled CodeUnknown = errors.CodeUnknown CodeInvalidArgument = errors.CodeInvalidArgument CodeDeadlineExceeded = errors.CodeDeadlineExceeded CodeNotFound = errors.CodeNotFound CodeAlreadyExists = errors.CodeAlreadyExists CodePermissionDenied = errors.CodePermissionDenied CodeResourceExhausted = errors.CodeResourceExhausted CodeFailedPrecondition = errors.CodeFailedPrecondition CodeAborted = errors.CodeAborted CodeOutOfRange = errors.CodeOutOfRange CodeUnimplemented = errors.CodeUnimplemented CodeInternal = errors.CodeInternal CodeDataLoss = errors.CodeDataLoss CodeUnauthenticated = errors.CodeUnauthenticated )
Codes.
const SSEResyncEvent = sse.ResyncEvent
SSEResyncEvent is the event type a subscriber receives when updates meant for it are gone (its Last-Event-ID left the history, or the transport lost updates while reconnecting): the client should refetch what it shows.
Variables ¶
This section is empty.
Functions ¶
func AlreadyExists ¶
AlreadyExists creates a 409 error: the resource already exists.
func ClientIP ¶
ClientIP returns the address of the client behind the proxies listed in HTTP_TRUSTED_PROXIES; without any, the peer address. Use it for rate limits, audit trails and abuse reports, never r.RemoteAddr or a raw X-Forwarded-For.
func DeadlineExceeded ¶
DeadlineExceeded creates a 504 error.
func Decode ¶
Decode reads a strict JSON body into v. Unknown fields, trailing data, empty bodies and bodies over HTTP_MAX_BODY_BYTES are invalid-argument errors ready for Error.
func EncodeCursor ¶
EncodeCursor turns the sort key of the last item of a page into the opaque cursor clients send back as after; Page.Cursor decodes it.
func Error ¶
func Error(w http.ResponseWriter, r *http.Request, err error)
Error renders err as the standard envelope: the app's error mappers are applied, the status comes from the error's code, the request id is stamped, and server-side failures are logged with their cause. Client errors are not logged.
func FailedPrecondition ¶
FailedPrecondition creates a 400 error: the system is not in the required state.
func InvalidArgument ¶
InvalidArgument creates a 400 error: the request is malformed or fails validation.
func JSON ¶
func JSON(w http.ResponseWriter, status int, v any) error
JSON writes v as JSON with the given status.
func LoadConfig ¶
LoadConfig loads dst (which must embed BaseConfig) from the environment under the service's default prefix, without building an App. Use it when a value in the config decides which options to pass to New, such as a ROLE that selects components. New loads the same struct again; that is cheap and keeps one source of truth.
func MustValue ¶
MustValue is what feature accessors use: it returns the stored value or panics with the standard message naming the accessor that was called and the option that was missing, for example "gox: postgres.From called but postgres.Enable() was not passed to gox.New".
func OutOfRange ¶
OutOfRange creates a 400 error.
func PermissionDenied ¶
PermissionDenied creates a 403 error.
func ProblemJSON ¶
ProblemJSON is an ErrorRenderer writing RFC 9457 problem details (application/problem+json): title, status, detail, plus code, request_id and every detail of the error as extension members.
func RequestID ¶
RequestID returns the id of this request: the one echoed in X-Request-ID and stamped on every log line. Use it to correlate rows the handler writes.
func ResourceExhausted ¶
ResourceExhausted creates a 429 error.
func Unauthenticated ¶
Unauthenticated creates a 401 error.
func Unavailable ¶
Unavailable creates a 503 error: retry later.
func Unimplemented ¶
Unimplemented creates a 501 error.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is a built service: config loaded, logger ready, components constructed. Run starts it.
func MustNew ¶
MustNew is New for main(): --help and --version print and exit 0, any other error prints to stderr and exits 1.
func New ¶
New builds an App: it applies the options, loads and validates config in one pass, builds the logger, runs every component factory, and wires the admin server. Nothing is started until Run. On error the returned error names what to fix.
func (*App) Config ¶
func (a *App) Config() BaseConfig
Config returns the framework configuration. A service's own fields live in the struct it passed to WithConfig.
func (*App) ConfigPrefix ¶
ConfigPrefix returns the environment prefix config was loaded under ("BILLING", or "" for unprefixed), so features can name variables in their own error messages.
func (*App) HTTPClient ¶
HTTPClient returns the default outbound client. It panics if HTTPClient() was not declared.
func (*App) HandleFunc ¶
func (a *App) HandleFunc(pattern string, h http.HandlerFunc)
HandleFunc registers a handler on the public mux using Go 1.22 patterns such as "GET /invoices/{id}".
func (*App) HasHTTP ¶
HasHTTP reports whether HTTP() was declared. Feature packages that decorate the public server check it to give a precise error.
func (*App) HasHTTPClient ¶
HasHTTPClient reports whether HTTPClient() was declared.
func (*App) Health ¶
Health returns the registry behind /healthz and /readyz. Register extra checks on it before Run.
func (*App) MapError ¶
MapError applies the registered mappers to err. gox.Error calls it; a service can call it too when rendering errors itself.
func (*App) Mux ¶
Mux returns the public ServeMux. Register routes on it before Run. It panics if HTTP() was not declared.
func (*App) Run ¶
Run starts the app and blocks until SIGINT or SIGTERM, or until a component fails fatally. It returns nil after a clean shutdown.
func (*App) RunContext ¶
RunContext is Run with a caller-supplied context: cancel it to shut down.
type BaseConfig ¶
BaseConfig is the configuration every service has. Embed it in your own config struct and pass that to WithConfig.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the extension API feature packages use inside their Enable() option. Services never touch it directly.
func (*Builder) Component ¶
Component registers a factory that runs at the end of New, after config and logging are ready, in stage order. The component it returns is started by Run.
func (*Builder) ConfigSection ¶
ConfigSection registers a feature's config struct. name becomes the env sub-prefix: section "POSTGRES" under service prefix "BILLING" reads BILLING_POSTGRES_*. declaredBy names the option (for --help and errors).
func (*Builder) ErrorRenderer ¶
func (b *Builder) ErrorRenderer(fn httpx.ErrorRenderer)
ErrorRenderer registers a renderer for error responses (an HTML error page). It is installed above the whole chain, so panics, timeouts and unmatched routes reach it too. Renderers are tried in registration order; the first to return true wins, otherwise the JSON envelope is written.
func (*Builder) Finish ¶
Finish registers a function that runs at the end of New, after every component factory. It is for features that decorate what another feature built (web mounts onto the mux HTTP() created) without depending on the order options were passed in.
func (*Builder) Middleware ¶
func (b *Builder) Middleware(mw ...Middleware)
Middleware adds middleware a feature package needs on every request. It runs after the default chain and before the auth slot and the service's own WithMiddleware, so auth can rely on what the feature set up (a session, for example).
func (*Builder) Set ¶
Set stores a value feature packages expose through their From accessor. Keys are unexported types owned by the feature package.
type ErrorMapper ¶
ErrorMapper translates a service's own errors into coded errors at the boundary. See WithErrorMapper.
type ErrorRenderer ¶
type ErrorRenderer = httpx.ErrorRenderer
ErrorRenderer writes an error response in place of the JSON envelope; it returns false to decline a request.
type HTTPOption ¶
type HTTPOption func(*httpOptions)
HTTPOption configures the public HTTP server declared with HTTP().
func WithCORS ¶
func WithCORS(cfg CORSConfig) HTTPOption
WithCORS enables CORS for the given configuration. It is never on by default.
func WithSPA ¶
func WithSPA(cfg SPAConfig) HTTPOption
WithSPA serves a single-page application from the same origin as the API: files from cfg.FS at their paths, index.html for every other GET so client-side routes deep-link, and the error envelope for unmatched requests under cfg.ServerPrefixes. Registered routes always win. With it, a request with the wrong method for a route is a 404, not a 405.
func WithSSE ¶ added in v0.2.0
func WithSSE(cfg SSEConfig) HTTPOption
WithSSE serves topic-based server-sent events, in the spirit of Mercure: clients subscribe with GET <Path>?topic=… (an exact topic, a template such as /orders/{id} or /files/{path...}, or *), the service publishes with a.SSE().Publish, and a reconnecting client resumes from Last-Event-ID, or gets an SSEResyncEvent when what it missed is gone. The subscription route is registered with middleware.Streaming, so like any Streaming route it is exempt from HTTP_REQUEST_TIMEOUT and HTTP_WRITE_TIMEOUT; on shutdown every stream ends so the server can drain. It enables a.SSE.
type Middleware ¶
type Middleware = middleware.Middleware
Middleware wraps an http.Handler. Handlers are plain net/http.
func RateLimit ¶
func RateLimit(limit int, window time.Duration) Middleware
RateLimit allows limit requests per window for each client IP and answers the rest with a 429 and Retry-After. Wrap the routes that need it (login, signup, password reset): a.Mux().Handle("POST /login", gox.RateLimit(10, time.Minute)(h)). The count is per process.
type Option ¶
Option declares one thing the app is made of or one behaviour of it.
func Component ¶
Component adds any user component at StageUser. It is the escape hatch for things gox has no option for.
func HTTP ¶
func HTTP(opts ...HTTPOption) Option
HTTP declares the public HTTP server: a net/http ServeMux behind the default middleware chain, /healthz and /readyz on the public port, and 404/405 rendered as the error envelope. It enables a.Mux and a.HandleFunc. A route registered with middleware.Streaming is exempt from the request timeout and the server's write deadline, and when shutdown begins its request context is canceled and a write to a stalled client fails, so the server can drain.
Chain: error renderers → route capture → stream shutdown → recovery → request id → client ip → tracing → metrics → logging → timeout → max bytes → security headers → CORS (WithCORS) → cross-origin protection → feature middleware (Builder.Middleware) → auth (WithAuth) → WithMiddleware → mux. Timeouts and the body limit come from HTTP_* config.
func HTTPClient ¶
func HTTPClient() Option
HTTPClient declares the default outbound client: timeouts and pool limits from HTTP_CLIENT_* config, trace and request-id propagation, and "User-Agent: <service>/<version>". It enables a.HTTPClient.
func Periodic ¶
Periodic runs fn every interval as a component: staggered first run, panic recovery, errors logged, stopped with the app.
func WithAuth ¶
func WithAuth(mw Middleware) Option
WithAuth fills the auth slot of the chain: it runs after the default middleware and before WithMiddleware, for every route including the health probes, so an auth middleware should let those through.
func WithConfig ¶
WithConfig registers the service's own config struct, which must embed BaseConfig. It is loaded and validated in the same pass as everything else.
func WithConfigPrefix ¶
WithConfigPrefix sets the environment prefix. The default is the uppercased service name; "" means unprefixed variables (HTTP_ADDR, ...).
func WithEnvAlias ¶
WithEnvAlias makes the variable name (without the service prefix, such as "POSTGRES_URL") fall back to another environment variable when it is not set: the name a platform injects ("DATABASE_URL") or one a service already deployed under. The service's own variable always wins.
func WithErrorMapper ¶
func WithErrorMapper(m ErrorMapper) Option
WithErrorMapper registers a mapper applied by gox.Error before rendering, so a service keeps its domain sentinels and maps them once.
func WithErrorRenderer ¶
func WithErrorRenderer(fn ErrorRenderer) Option
WithErrorRenderer replaces the JSON envelope for every error response, from handlers (gox.Error) and from the framework (404, 405, panics, timeouts, body limits) alike. Use it when clients expect another shape: gox.ProblemJSON, or a function that picks a shape by path. Renderers of feature packages, such as gox/web's HTML error pages, still see the request first.
func WithLogger ¶
WithLogger replaces the logger gox would build from config.
func WithMiddleware ¶
func WithMiddleware(mw ...Middleware) Option
WithMiddleware appends middleware after the default chain (and after the auth slot), outermost first.
func WithShutdownTimeout ¶
WithShutdownTimeout sets the default per-component stop budget. The SHUTDOWN_TIMEOUT variable still overrides it.
func WithVersion ¶
WithVersion sets the build version reported in logs and on /version.
func WithoutAdminServer ¶
func WithoutAdminServer() Option
WithoutAdminServer disables the ops server.
type SPAConfig ¶
type SPAConfig = httpserver.SPAConfig
SPAConfig describes a single-page application served next to the API.
type SSEConfig ¶ added in v0.2.0
type SSEConfig struct {
// Path subscribers connect to with GET ?topic=. Default: /events.
Path string
// Authorize decides which private updates a subscriber receives: an
// update with Private set reaches the subscription made by r only if
// Authorize returns true for one of its topics. It sees the request with
// everything the chain put there (jwt.ClaimsFromContext, web.SessionFrom);
// answers are cached per topic for a minute. Without it, private updates
// reach no one. Who may subscribe at all is the chain's business
// (WithAuth), checked again on every reconnect (see MaxAge).
Authorize func(r *http.Request, topic string) bool
// Transport fans updates out across replicas, built after the
// datastores so it can use them: pass postgres.SSETransport. Default:
// none, updates reach only this process's subscribers.
Transport func(a *App) (SSETransport, error)
// Heartbeat is the interval of the keep-alive comment that stops
// proxies closing idle streams. Default: 15s.
Heartbeat time.Duration
// WriteTimeout bounds each write to a subscriber; a client that stalls
// longer is disconnected. Default: 10s.
WriteTimeout time.Duration
// MaxAge ends a stream after this long (less up to 10% jitter); the
// client reconnects with Last-Event-ID through the middleware chain
// again, so an expired token or a closed session stops the stream.
// Default: 15m; negative keeps streams open indefinitely.
MaxAge time.Duration
// Buffer is the number of updates queued per subscriber; one that falls
// further behind is disconnected and resumes with Last-Event-ID.
// Default: 64.
Buffer int
// History is the number of recent updates kept in memory for
// Last-Event-ID replay. Default: 1000; negative disables replay.
History int
// MaxTopics caps the topic selectors of one subscription. Default: 32.
MaxTopics int
// MaxSubscribers caps the open streams of this process; more are
// refused with 503 and Retry-After. Default: 10000; negative means no
// cap.
MaxSubscribers int
}
SSEConfig configures WithSSE. Zero values take the defaults noted per field.
type SSEHub ¶ added in v0.2.0
SSEHub fans server-sent events out to subscribers; get it with a.SSE().
type SSETransport ¶ added in v0.2.0
SSETransport carries published updates to every replica of the service; postgres.SSETransport is one.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gox
command
Command gox is the framework's CLI.
|
Command gox is the framework's CLI. |
|
gox/internal/llmdoc
Package llmdoc generates llm.txt: the one file a model needs to build a service on gox.
|
Package llmdoc generates llm.txt: the one file a model needs to build a service on gox. |
|
gox/internal/scaffold
Package scaffold renders a new service from the embedded template: `gox new <name> [--postgres] [--web]`.
|
Package scaffold renders a new service from the embedded template: `gox new <name> [--postgres] [--web]`. |
|
gox/internal/scaffold/_template/base/internal/hello
Package hello is the example feature: replace it with your own.
|
Package hello is the example feature: replace it with your own. |
|
gox/internal/scaffold/_template/postgres/migrations
Package migrations embeds the SQL migration files.
|
Package migrations embeds the SQL migration files. |
|
gox/internal/scaffold/_template/web/static
Package static embeds the site's assets.
|
Package static embeds the site's assets. |
|
http
module
|
|
|
jobs
module
|
|
|
jwt
module
|
|
|
logger
module
|
|
|
monetary
module
|
|
|
openapi
module
|
|
|
pkg
|
|
|
admin
Package admin is the ops server every gox service runs on a separate port: /healthz, /readyz, /version and /debug/pprof, plus whatever the root mounts (pkg/otel adds /metrics).
|
Package admin is the ops server every gox service runs on a separate port: /healthz, /readyz, /version and /debug/pprof, plus whatever the root mounts (pkg/otel adds /metrics). |
|
config
Package config loads and validates a service's configuration in one pass: the framework's Base, the service's own struct (which embeds Base), and every config section a feature package registered, all under one env prefix.
|
Package config loads and validates a service's configuration in one pass: the framework's Base, the service's own struct (which embeds Base), and every config section a feature package registered, all under one env prefix. |
|
errors
Package errors is the canonical error model for gox services: an error carries a Code (mirroring gRPC status codes), a public-safe message, and optional details, and maps to an HTTP status and a JSON envelope in one documented way.
|
Package errors is the canonical error model for gox services: an error carries a Code (mirroring gRPC status codes), a public-safe message, and optional details, and maps to an HTTP status and a JSON envelope in one documented way. |
|
health
Package health is a registry of named liveness and readiness checks with JSON handlers for /healthz and /readyz.
|
Package health is a registry of named liveness and readiness checks with JSON handlers for /healthz and /readyz. |
|
httpclient
Package httpclient builds the outbound http.Client every gox service uses: timeouts and pool limits from config, OpenTelemetry trace propagation, request-id propagation, a service User-Agent, and opt-in retries for idempotent requests.
|
Package httpclient builds the outbound http.Client every gox service uses: timeouts and pool limits from config, OpenTelemetry trace propagation, request-id propagation, a service User-Agent, and opt-in retries for idempotent requests. |
|
httpserver
Package httpserver is the public HTTP server component: a net/http Server with sane timeouts over a Go 1.22+ ServeMux, health probes on the public port, and 404/405 rendered as the standard error envelope.
|
Package httpserver is the public HTTP server component: a net/http Server with sane timeouts over a Go 1.22+ ServeMux, health probes on the public port, and 404/405 rendered as the standard error envelope. |
|
httpx
Package httpx holds the three helpers every handler uses (JSON, Error, Decode) and the envelope writer the middleware chain shares with them, so a client sees one error shape whether a handler or the framework produced it.
|
Package httpx holds the three helpers every handler uses (JSON, Error, Decode) and the envelope writer the middleware chain shares with them, so a client sees one error shape whether a handler or the framework produced it. |
|
i18n
Package i18n translates the strings a server owns: error messages, mail subjects, labels injected into a page.
|
Package i18n translates the strings a server owns: error messages, mail subjects, labels injected into a page. |
|
lifecycle
Package lifecycle defines the Component contract every gox-managed piece of a service implements, and a Manager that starts components in stage order, stops them in reverse with a per-component budget, and surfaces the first fatal error from any long-running component.
|
Package lifecycle defines the Component contract every gox-managed piece of a service implements, and a Manager that starts components in stage order, stops them in reverse with a per-component budget, and surfaces the first fatal error from any long-running component. |
|
log
Package log builds the slog.Logger every gox service uses: JSON in production, text in development, and request-scoped fields stamped on every record from the context.
|
Package log builds the slog.Logger every gox service uses: JSON in production, text in development, and request-scoped fields stamped on every record from the context. |
|
mail
Package mail is the provider-neutral side of sending email: the Message every mail provider accepts (providers/mailgun, providers/resend), a Sender interface, an SMTP sender for development and self-hosted relays, a guard that keeps a staging environment from mailing real people, and a recorder for tests.
|
Package mail is the provider-neutral side of sending email: the Message every mail provider accepts (providers/mailgun, providers/resend), a Sender interface, an SMTP sender for development and self-hosted relays, a guard that keeps a staging environment from mailing real people, and a recorder for tests. |
|
middleware
Package middleware provides the HTTP middleware every gox service runs and the Chain that orders them.
|
Package middleware provides the HTTP middleware every gox service runs and the Chain that orders them. |
|
otel
Package otel sets up OpenTelemetry for a service: a tracer provider that exports over OTLP when enabled, a meter provider that always feeds a Prometheus handler for the admin server (and OTLP when enabled), W3C propagation, and a hook that stamps trace and span ids on log records.
|
Package otel sets up OpenTelemetry for a service: a tracer provider that exports over OTLP when enabled, a meter provider that always feeds a Prometheus handler for the admin server (and OTLP when enabled), W3C propagation, and a hook that stamps trace and span ids on log records. |
|
sse
Package sse is a topic-based server-sent events hub in the spirit of Mercure: clients subscribe with GET ?topic=… (exact topics, {name} segment templates, or *), the service publishes Updates, private updates reach only the subscribers Authorize allows, and a reconnecting client resumes from Last-Event-ID.
|
Package sse is a topic-based server-sent events hub in the spirit of Mercure: clients subscribe with GET ?topic=… (exact topics, {name} segment templates, or *), the service publishes Updates, private updates reach only the subscribers Authorize allows, and a reconnecting client resumes from Last-Event-ID. |
|
storage
Package storage is the backend-neutral side of object storage: the Bucket interface every storage provider implements (providers/s3), and signed upload tokens for the direct-upload handshake, where a browser uploads straight to the bucket and then tells the service which object it sent.
|
Package storage is the backend-neutral side of object storage: the Bucket interface every storage provider implements (providers/s3), and signed upload tokens for the direct-upload handshake, where a browser uploads straight to the bucket and then tells the service which object it sent. |
|
storage/storagetest
Package storagetest is an in-memory storage.Bucket for tests.
|
Package storagetest is an in-memory storage.Bucket for tests. |
|
postgres
module
|
|
|
providers
|
|
|
mailgun
module
|
|
|
posthog
module
|
|
|
resend
module
|
|
|
s3
module
|
|
|
stripe
module
|
|
|
supabase
module
|
|
|
temporal
module
|
|
|
workos
module
|
|
|
supabase
module
|
|
|
web
module
|