Documentation
¶
Index ¶
- type CheckData
- type FieldData
- type NotImplemented
- type NounInfo
- type Query
- type QueryNone
- func (q QueryNone) ActivateDomains(name string) (_, _ []string, err error)
- func (q QueryNone) FieldsOf(kind string) (_ []FieldData, _ error)
- func (q QueryNone) IsDomainActive(name string) (_ bool, _ error)
- func (q QueryNone) KindOfAncestors(kind string) (_ []string, _ error)
- func (q QueryNone) KindValues(id string) (_ []ValueData, _ error)
- func (q QueryNone) NounInfo(name string) (_ NounInfo, _ error)
- func (q QueryNone) NounName(id string) (_ string, _ error)
- func (q QueryNone) NounNames(id string) (_ []string, _ error)
- func (q QueryNone) NounValues(id, field string) (_ []ValueData, _ error)
- func (q QueryNone) NounsByKind(kind string) (_ []string, _ error)
- func (q QueryNone) PatternLabels(pat string) (_ []string, _ error)
- func (q QueryNone) PluralFromSingular(singular string) (_ string, _ error)
- func (q QueryNone) PluralToSingular(plural string) (_ string, _ error)
- func (q QueryNone) ReadChecks(actuallyJustThisOne string) (_ []CheckData, _ error)
- func (q QueryNone) ReciprocalsOf(rel, id string) (_ []string, _ error)
- func (q QueryNone) Relate(rel, noun, otherNoun string) error
- func (q QueryNone) RelativesOf(rel, id string) (_ []string, _ error)
- func (q QueryNone) RulesFor(pat string) (_ []RuleData, _ error)
- type RuleData
- type ValueData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotImplemented ¶
type NotImplemented string
NotImplemented - generic error used returned by QueryNone
func (NotImplemented) Error ¶
func (e NotImplemented) Error() string
type NounInfo ¶
type NounInfo struct {
Domain, Id, Kind string // id is the string identifier for the noun, unique within the domain.
}
type Query ¶
type Query interface {
IsDomainActive(name string) (bool, error)
ActivateDomains(name string) (prev, next []string, err error)
ReadChecks(actuallyJustThisOne string) ([]CheckData, error)
// every field exclusive to the passed kind
FieldsOf(kind string) ([]FieldData, error)
// given a plural or singular kind
// return the names of the ancestors, ending with the kind itself
KindOfAncestors(kind string) ([]string, error)
KindValues(id string) ([]ValueData, error)
NounInfo(name string) (NounInfo, error)
NounName(id string) (string, error)
NounNames(id string) ([]string, error)
// a single field can contain a set of recursive spare values;
// so this returns pairs of path, value.
NounValues(id, field string) ([]ValueData, error)
NounsByKind(kind string) ([]string, error)
PluralToSingular(plural string) (string, error)
PluralFromSingular(singular string) (string, error)
// includes the parameters, followed by the result
// the result can be a blank string for execute statements
PatternLabels(pat string) ([]string, error)
RulesFor(pat string) ([]RuleData, error)
ReciprocalsOf(rel, id string) ([]string, error)
RelativesOf(rel, id string) ([]string, error)
Relate(rel, noun, otherNoun string) error
}
type QueryNone ¶
type QueryNone string
QueryNone - implements Query by returning empty results for all reads, and the NotImplemented error for mutating methods.
func (QueryNone) ActivateDomains ¶
func (QueryNone) KindOfAncestors ¶
func (QueryNone) NounValues ¶
func (QueryNone) PluralFromSingular ¶
func (QueryNone) PluralToSingular ¶
func (QueryNone) ReadChecks ¶
func (QueryNone) ReciprocalsOf ¶
Click to show internal directories.
Click to hide internal directories.