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 WithDecryptionKey(decryptionKey encryption.PrivateKey) Builder WithGraphbase(graphbase Graphbase) Builder WithDatabase(db Database) Builder WithTable(table Table) Builder WithSet(set Set) Builder Now() (Selector, error) }
Builder represents a selector builder
type Content ¶
type Content interface { IsGraphbase() bool Graphbase() Graphbase IsDatabase() bool Database() Database IsTable() bool Table() Table IsSet() bool Set() Set }
Content represents a selector content
type Database ¶
type Database interface { Hash() hash.Hash Graphbase() specifiers.Specifier Content() DatabaseContent }
Database represents a database selector
type DatabaseBuilder ¶
type DatabaseBuilder interface { Create() DatabaseBuilder WithGraphbase(graphbase specifiers.Specifier) DatabaseBuilder WithSpecifier(specifier specifiers.Specifier) DatabaseBuilder WithName(name string) DatabaseBuilder WithNames(names []string) DatabaseBuilder Now() (Database, error) }
DatabaseBuilder represents a database builder
func NewDatabaseBuilder ¶
func NewDatabaseBuilder() DatabaseBuilder
NewDatabaseBuilder creates a new database builder instance
type DatabaseContent ¶
type DatabaseContent interface { IsSpecifier() bool Specifier() specifiers.Specifier IsName() bool Name() string IsNames() bool Names() []string }
DatabaseContent represents a database content
type Graphbase ¶
type Graphbase interface { Hash() hash.Hash Content() GraphbaseContent HasParent() bool Parent() specifiers.Specifier }
Graphbase represents a graphbase
type GraphbaseBuilder ¶
type GraphbaseBuilder interface { Create() GraphbaseBuilder WithParent(parent specifiers.Specifier) GraphbaseBuilder WithSpecifier(specifier specifiers.Specifier) GraphbaseBuilder WithMetaData(metaData Table) GraphbaseBuilder Now() (Graphbase, error) }
GraphbaseBuilder represents a graphbase builder
func NewGraphbaseBuilder ¶
func NewGraphbaseBuilder() GraphbaseBuilder
NewGraphbaseBuilder creates a new graphbase builder instance
type GraphbaseContent ¶
type GraphbaseContent interface { IsSpecifier() bool Specifier() specifiers.Specifier IsMetaData() bool MetaData() Table }
GraphbaseContent represents a graphbase content
type Selector ¶
type Selector interface { Hash() hash.Hash DecryptionKey() encryption.PrivateKey Content() Content }
Selector retrieves data from the database
type Set ¶
type Set interface { Hash() hash.Hash Graphbase() specifiers.Specifier Database() specifiers.Specifier Schema() schemas.Schema Content() SetContent HasRank() bool Rank() SetRank }
Set represents a set
type SetBuilder ¶
type SetBuilder interface { Create() SetBuilder WithGraphbase(graphbase specifiers.Specifier) SetBuilder WithDatabase(db specifiers.Specifier) SetBuilder WithSchema(schema schemas.Schema) SetBuilder WithSpecifier(specifier specifiers.Specifier) SetBuilder From(from uint) SetBuilder To(to uint) SetBuilder Now() (Set, error) }
SetBuilder represents a set builder
func NewSetBuilder ¶
func NewSetBuilder() SetBuilder
NewSetBuilder creates a new set builder instance
type SetContent ¶
type SetContent interface { IsSpecifier() bool Specifier() specifiers.Specifier }
SetContent represents a set content
type Table ¶
type Table interface { Hash() hash.Hash Graphbase() specifiers.Specifier Database() specifiers.Specifier Schema() table_schemas.Schema Content() TableContent }
Table represents a table content
type TableBuilder ¶
type TableBuilder interface { Create() TableBuilder WithGraphbase(graphbase specifiers.Specifier) TableBuilder WithDatabase(db specifiers.Specifier) TableBuilder WithSchema(schema table_schemas.Schema) TableBuilder WithSpecifier(specifier specifiers.Specifier) TableBuilder Now() (Table, error) }
TableBuilder represents a table builder
func NewTableBuilder ¶
func NewTableBuilder() TableBuilder
NewTableBuilder creates anew table builder instance
type TableContent ¶
type TableContent interface { Hash() hash.Hash IsSpecifier() bool Specifier() specifiers.Specifier }
TableContent represents a table content