appkit

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvelopeFromJSON

func EnvelopeFromJSON(resourceType string, raw []byte) (*types.ResourceEnvelope, error)

EnvelopeFromJSON parses FHIR JSON into a ResourceEnvelope.

func PatientJSON

func PatientJSON(given, family, phone string) []byte

PatientJSON returns a small Patient resource payload for examples.

func PrettyJSON

func PrettyJSON(raw []byte) string

PrettyJSON returns indented JSON for display.

func RepoPath

func RepoPath(parts ...string) string

RepoPath resolves a repository-relative path regardless of the current working directory.

func ShutdownRuntime

func ShutdownRuntime(ctx context.Context, rt *runtime.Runtime) error

ShutdownRuntime normalizes benign runtime shutdown errors for examples.

Types

type SQLiteStack

type SQLiteStack struct {
	DB              *sqlite.DB
	RegistryManager *registry.Manager
	Snapshot        *registry.Snapshot
	SearchRegistry  *search.SnapshotRegistry
	FHIRPath        fhirpath.Engine
	Indexer         *search.RegistryIndexer
	ResourceService *core.ResourceService
	SearchService   *search.Service
}

SQLiteStack is a ready-to-use local stack for examples.

func NewSQLiteStack

func NewSQLiteStack(ctx context.Context, dbPath string, resourceTypes ...string) (*SQLiteStack, error)

NewSQLiteStack composes a local SQLite-backed resource and search stack.

func (*SQLiteStack) Close

func (s *SQLiteStack) Close() error

type SyncIndexerBridge

type SyncIndexerBridge struct {
	Indexer search.Indexer
}

SyncIndexerBridge adapts a search.Indexer for sync pull-apply indexing.

func (SyncIndexerBridge) BuildSearchEntries

func (b SyncIndexerBridge) BuildSearchEntries(ctx context.Context, res *types.ResourceEnvelope) ([]store.SearchIndexEntry, error)

Jump to

Keyboard shortcuts

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