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

Method ReadSchema

internal/storage/proxies/cache/schema_reader.go:30–32  ·  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

28
29// ReadSchema returns the schema definition for a specific tenant and version as a structured object.
30func (r *SchemaReader) ReadSchema(ctx context.Context, tenantID, version string) (schema *base.SchemaDefinition, err error) {
31 return r.delegate.ReadSchema(ctx, tenantID, version)
32}
33
34// ReadSchemaString returns the schema definition for a specific tenant and version as a string.
35func (r *SchemaReader) ReadSchemaString(ctx context.Context, tenantID, version string) (definitions []string, err error) {

Callers

nothing calls this directly

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 1

ReadSchemaMethod · 0.65

Tested by

no test coverage detected