transport

package
v1.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Forbidden                      = "Forbidden"
	AuthorizationServerUnavailable = "Authorization server unavailable"
)

Variables

This section is empty.

Functions

func OrgIDFromContext added in v1.0.0

func OrgIDFromContext(ctx context.Context) uuid.UUID

OrgIDFromContext extracts the organization ID from the context. Falls back to the default organization ID if not present.

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, body any, errorBody any, code int)

WriteJSONResponse is a version-independent response writer. For 2xx status codes, body is encoded as the response. For non-2xx, errorBody is encoded instead. Responses with no body (204, 304, 1xx) only write the status code.

Types

This section is empty.

Directories

Path Synopsis
agent

Jump to

Keyboard shortcuts

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