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 WithIdentifier(identifier Identifier) Builder WithIdentifiers(identifiers []Identifier) Builder Now() (Specifier, error) }
Builder represents a specifier builder
type Comparer ¶
type Comparer interface { Hash() hash.Hash First() Identifier Second() Identifier IsAnd() bool }
Comparer represents an identifier comparer
type ComparerBuilder ¶
type ComparerBuilder interface { Create() ComparerBuilder WithFirst(first Identifier) ComparerBuilder WithSecond(second Identifier) ComparerBuilder IsAnd() ComparerBuilder Now() (Comparer, error) }
ComparerBuilder represents a comparer builder
func NewComparerBuilder ¶
func NewComparerBuilder() ComparerBuilder
NewComparerBuilder creates a new comparer builder
type Element ¶
type Element interface { Hash() hash.Hash IsHashPtr() bool HashPtr() *hash.Hash IsID() bool ID() *uuid.UUID }
Element represents an element
type ElementBuilder ¶
type ElementBuilder interface { Create() ElementBuilder WithHash(hash hash.Hash) ElementBuilder WithID(id *uuid.UUID) ElementBuilder Now() (Element, error) }
ElementBuilder represents an element builder
func NewElementBuilder ¶
func NewElementBuilder() ElementBuilder
NewElementBuilder creates a new element builder
type Identifier ¶
type Identifier interface { Hash() hash.Hash IsElement() bool Element() Element IsComparer() bool Comparer() Comparer }
Identifier represents a selector identifier
type IdentifierBuilder ¶
type IdentifierBuilder interface { Create() IdentifierBuilder WithElement(element Element) IdentifierBuilder WithComparer(comparer Comparer) IdentifierBuilder Now() (Identifier, error) }
IdentifierBuilder represents an identifier builder
func NewIdentifierBuilder ¶
func NewIdentifierBuilder() IdentifierBuilder
NewIdentifierBuilder creates a new identifier builder
type Identifiers ¶
type Identifiers interface { Hash() hash.Hash All() []Identifier }
Identifiers represents an identifiers
type IdentifiersBuilder ¶
type IdentifiersBuilder interface { Create() IdentifiersBuilder WithIdentifiers(identifiers []Identifier) IdentifiersBuilder Now() (Identifiers, error) }
IdentifiersBuilder represents an identifiers builder
func NewIdentifiersBuilder ¶
func NewIdentifiersBuilder() IdentifiersBuilder
NewIdentifiersBuilder creates a new identifiers builder
type Specifier ¶
type Specifier interface { Hash() hash.Hash IsIdentifier() bool Identifier() Identifier IsIdentifiers() bool Identifiers() Identifiers }
Specifier represents a specifier