Documentation ¶
Index ¶
- type RelationshipReader
- func (_m *RelationshipReader) GetUniqueEntityIDsByEntityType(ctx context.Context, typ, token string) (ids []string, err error)
- func (_m *RelationshipReader) HeadSnapshot(ctx context.Context) (token.SnapToken, error)
- func (_m *RelationshipReader) QueryRelationships(ctx context.Context, filter *base.TupleFilter, snap string) (database.ITupleCollection, error)
- type RelationshipWriter
- type SchemaReader
- func (_m *SchemaReader) DeleteRelationships(ctx context.Context, filter *base.TupleFilter) (token.EncodedSnapToken, error)
- func (_m *SchemaReader) HeadVersion(ctx context.Context) (version string, err error)
- func (_m *SchemaReader) ReadSchema(ctx context.Context, version string) (schema *base.IndexedSchema, err error)
- func (_m *SchemaReader) ReadSchemaDefinition(ctx context.Context, entityType, version string) (definition *base.EntityDefinition, v string, err error)
- func (_m *SchemaReader) WriteRelationships(ctx context.Context, collection database.ITupleCollection) (token.EncodedSnapToken, error)
- func (_m *SchemaReader) WriteSchema(ctx context.Context, definitions []repositories.SchemaDefinition) (version string, err error)
- type SchemaWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RelationshipReader ¶
RelationshipReader is an autogenerated mock type for the RelationshipReader type
func (*RelationshipReader) GetUniqueEntityIDsByEntityType ¶
func (_m *RelationshipReader) GetUniqueEntityIDsByEntityType(ctx context.Context, typ, token string) (ids []string, err error)
GetUniqueEntityIDsByEntityType - Reads relation tuples from the repository.
func (*RelationshipReader) HeadSnapshot ¶
HeadSnapshot - Reads the latest version of the snapshot from the repository.
func (*RelationshipReader) QueryRelationships ¶
func (_m *RelationshipReader) QueryRelationships(ctx context.Context, filter *base.TupleFilter, snap string) (database.ITupleCollection, error)
QueryRelationships - Reads relation tuples from the repository.
type RelationshipWriter ¶
RelationshipWriter is an autogenerated mock type for the RelationshipWriter type
type SchemaReader ¶
SchemaReader is an autogenerated mock type for the SchemaReader type
func (*SchemaReader) DeleteRelationships ¶
func (_m *SchemaReader) DeleteRelationships(ctx context.Context, filter *base.TupleFilter) (token.EncodedSnapToken, error)
DeleteRelationships - Delete relationship from repository
func (*SchemaReader) HeadVersion ¶
func (_m *SchemaReader) HeadVersion(ctx context.Context) (version string, err error)
HeadVersion - Reads the latest version from the repository.
func (*SchemaReader) ReadSchema ¶
func (_m *SchemaReader) ReadSchema(ctx context.Context, version string) (schema *base.IndexedSchema, err error)
ReadSchema - Reads a new schema from repository
func (*SchemaReader) ReadSchemaDefinition ¶
func (_m *SchemaReader) ReadSchemaDefinition(ctx context.Context, entityType, version string) (definition *base.EntityDefinition, v string, err error)
ReadSchemaDefinition - Reads a Schema Definition from repository
func (*SchemaReader) WriteRelationships ¶
func (_m *SchemaReader) WriteRelationships(ctx context.Context, collection database.ITupleCollection) (token.EncodedSnapToken, error)
WriteRelationships - Write a Relation to repository
func (*SchemaReader) WriteSchema ¶
func (_m *SchemaReader) WriteSchema(ctx context.Context, definitions []repositories.SchemaDefinition) (version string, err error)
WriteSchema - Write Schema to repository
type SchemaWriter ¶
SchemaWriter is an autogenerated mock type for the SchemaWriter type