drs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package drs translates object-domain values to and from the generated DRS contract at the HTTP boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGeneratedAccessMethodMap

func FromGeneratedAccessMethodMap(updates map[string][]generated.AccessMethod) map[string][]objects.AccessMethod

func FromGeneratedAccessMethods

func FromGeneratedAccessMethods(methods []generated.AccessMethod) []objects.AccessMethod

func FromGeneratedCandidate

func FromGeneratedCandidate(value generated.DrsObjectCandidate) objects.Candidate

FromGeneratedCandidate translates the DRS registration request into an object candidate.

func ObjectPayload

func ObjectPayload(record objects.Record) map[string]json.RawMessage

ObjectPayload builds the compatibility DRS response payload. Unknown properties remain raw JSON values so response encoding does not coerce them through interface{}.

func RegisterDRSRoutes

func RegisterDRSRoutes(router fiber.Router, objectService *objectrecords.Service, accessService *transfers.Service, serviceInfo generated.Service)

func ToGenerated

func ToGenerated(record objects.Record) generated.DrsObject

func ToGeneratedAccessMethods

func ToGeneratedAccessMethods(methods *[]objects.AccessMethod) *[]generated.AccessMethod

ToGeneratedAccessMethods translates domain access methods for generated request/response models that embed the DRS access contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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