Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
Config *ConfigBuilder.Config
// contains filtered or unexported fields
}
func New ¶
func New(cfg *ConfigBuilder.Config) *Service
func (*Service) RequireAgent ¶ added in v0.15.3
RequireAgent validates SDK credentials (X-API-Key JWT, or x-project-id/x-agent-id[/x-environment-id]).
func (*Service) RequireIntegration ¶ added in v0.16.0
RequireIntegration accepts "Authorization: Bearer flg_..." integration tokens and puts the owning company in the context.
func (*Service) RequireUser ¶ added in v0.15.3
RequireUser verifies the Clerk session JWT from "Authorization: Bearer <token>" (JWKS cached locally by the Clerk SDK), requires a verified primary email, and puts the user into the request context.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package auth carries the verified caller identity through the request context.
|
Package auth carries the verified caller identity through the request context. |
|
Package chewedfeed tells ChewedFeed HQ about flags.gg's customers: the standard product hook (POST /api/product-customers/sync with the X-Enquiry-Key header).
|
Package chewedfeed tells ChewedFeed HQ about flags.gg's customers: the standard product hook (POST /api/product-customers/sync with the X-Enquiry-Key header). |
|
Package integration is the machine API for ticket trackers (Tracklines): a flag per ticket that is created in the first environment, toggled, promoted along the environment chain, and archived when done.
|
Package integration is the machine API for ticket trackers (Tracklines): a flag per ticket that is created in the first environment, toggled, promoted along the environment chain, and archived when done. |
|
Package staff serves platform-wide information to the configured verified Clerk user.
|
Package staff serves platform-wide information to the configured verified Clerk user. |
|
Package testdb starts a throwaway Postgres with the real k8s/schema migrations, for integration tests.
|
Package testdb starts a throwaway Postgres with the real k8s/schema migrations, for integration tests. |
|
Package webhooks manages company-scoped subscriptions and a durable signed delivery queue (FLA-104).
|
Package webhooks manages company-scoped subscriptions and a durable signed delivery queue (FLA-104). |