structures

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Create() Builder
	WithGraphbase(graphbase graphbases.Graphbase) Builder
	WithIdentity(identity identities.Identity) Builder
	WithSetSchema(setSchame set_schemas.Schema) Builder
	WithSet(set sets.Set) Builder
	WithTableSchemaValue(tableSchemaValue values.Value) Builder
	WithTableSchemaProperty(tableSchemaProperty table_schemas.Property) Builder
	WithTableSchemaProperties(tableSchemaProperties table_schemas.Properties) Builder
	WithTableSchema(tableSchema table_schemas.Schema) Builder
	WithTableElement(tableElement elements.Element) Builder
	WithTableRow(tableRow rows.Row) Builder
	WithTable(table tables.Table) Builder
	ExecutesOn(executesOn time.Time) Builder
	ExpiresOn(expiresOn time.Time) Builder
	IsDeleted() Builder
	Now() (Structure, error)
}

Builder represents a structure builder

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder

type Content

type Content interface {
	IsGraphbase() bool
	Graphbase() graphbases.Graphbase
	IsIdentity() bool
	Identity() identities.Identity
	IsTable() bool
	Table() Table
	IsSet() bool
	Set() Set
}

Content represents a structure content

type Repository

type Repository interface {
	Retrieve(id *uuid.UUID) (Structure, error)
	RetrieveByHash(hash hash.Hash) (Structure, error)
	Search(selector selectors.Selector) ([]Structure, error)
}

Repository represents a structure repository

type Service

type Service interface {
	Save(structure Structure) error
	SaveAll(list []Structure) error
}

Service represents a structure service

type Set

type Set interface {
	IsSchema() bool
	Schema() set_schemas.Schema
	IsSet() bool
	Set() sets.Set
}

Set represents a set

type Structure

type Structure interface {
	Content() Content
	IsActive() bool
	IsDeleted() bool
	HasExecutesOn() bool
	ExecutesOn() *time.Time
	HasExpiresOn() bool
	ExpiresOn() *time.Time
}

Structure represents a structure

type Table

type Table interface {
	IsSchema() bool
	Schema() TableSchema
	IsElement() bool
	Element() elements.Element
	IsRow() bool
	Row() rows.Row
	IsTable() bool
	Table() tables.Table
}

Table represents a table

type TableSchema

type TableSchema interface {
	IsValue() bool
	Value() values.Value
	IsProperty() bool
	Property() table_schemas.Property
	IsProperties() bool
	Properties() table_schemas.Properties
	IsSchema() bool
	Schema() table_schemas.Schema
}

TableSchema represents a table schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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