MCPcopy Create free account
hub / github.com/Permify/permify / ReadSchema

Method ReadSchema

internal/storage/storage.go:111–111  ·  view source on GitHub ↗

ReadSchema returns the schema definition for a specific tenant and version as a structured object.

(ctx context.Context, tenantID, version string)

Source from the content-addressed store, hash-verified

109type SchemaReader interface {
110 // ReadSchema returns the schema definition for a specific tenant and version as a structured object.
111 ReadSchema(ctx context.Context, tenantID, version string) (schema *base.SchemaDefinition, err error)
112 // ReadSchemaString returns the schema definition for a specific tenant and version as a string.
113 ReadSchemaString(ctx context.Context, tenantID, version string) (definitions []string, err error)
114 // ReadEntityDefinition reads entity config from the storage.

Callers 12

ReadSchemaMethod · 0.65
visualizeFunction · 0.65
ReadSchemaMethod · 0.65
ReadSchemaMethod · 0.65
ReadSchemaMethod · 0.65
ReadMethod · 0.65
readSchemaMethod · 0.65

Implementers 7

NoopSchemaReaderinternal/storage/storage.go
SchemaReaderinternal/storage/proxies/cache/schema_
SchemaReaderinternal/storage/proxies/circuitbreake
SchemaReaderinternal/storage/proxies/singleflight/
SchemaReaderinternal/storage/postgres/schema_reade
SchemaReaderinternal/storage/memory/schema_reader.
mockSchemaReaderinternal/engines/lookup_test.go

Calls

no outgoing calls

Tested by

no test coverage detected