internal

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 29 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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimitBody added in v0.15.3

func LimitBody(next http.Handler) http.Handler

LimitBody caps request bodies; uploads get more room for multipart files.

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

func (s *Service) RequireAgent(next http.Handler) http.Handler

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

func (s *Service) RequireIntegration(next http.Handler) http.Handler

RequireIntegration accepts "Authorization: Bearer flg_..." integration tokens and puts the owning company in the context.

func (*Service) RequireUser added in v0.15.3

func (s *Service) RequireUser(next http.Handler) http.Handler

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.

func (*Service) Start

func (s *Service) Start() error

func (*Service) ValidateAgent

func (s *Service) ValidateAgent(r *http.Request) bool

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 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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL