Documentation ¶
Index ¶
- Constants
- type Config
- type Iterator
- func (it *Iterator) Clone() graph.Iterator
- func (it *Iterator) Close() error
- func (it *Iterator) Contains(ctx context.Context, v graph.Value) bool
- func (it *Iterator) Err() error
- func (it *Iterator) Next(ctx context.Context) bool
- func (it *Iterator) NextPath(ctx context.Context) bool
- func (it *Iterator) Optimize() (graph.Iterator, bool)
- func (it *Iterator) Reset()
- func (it *Iterator) Result() graph.Value
- func (it *Iterator) Size() (int64, bool)
- func (it *Iterator) Sorted() bool
- func (it *Iterator) Stats() graph.IteratorStats
- func (it *Iterator) String() string
- func (it *Iterator) SubIterators() []graph.Iterator
- func (it *Iterator) TagResults(dst map[string]graph.Value)
- func (it *Iterator) Tagger() *graph.Tagger
- func (it *Iterator) Type() graph.Type
- func (it *Iterator) UID() uint64
- type LogEntry
- type MetadataEntry
- type NodeEntry
- type QuadEntry
- type QuadStore
- func (qs *QuadStore) ApplyDeltas(in []graph.Delta, ignoreOpts graph.IgnoreOpts) error
- func (qs *QuadStore) Close() error
- func (qs *QuadStore) ForRequest(r *http.Request) (graph.QuadStore, error)
- func (qs *QuadStore) NameOf(val graph.Value) quad.Value
- func (qs *QuadStore) NodeSize() int64
- func (qs *QuadStore) NodesAllIterator() graph.Iterator
- func (qs *QuadStore) OptimizeIterator(it graph.Iterator) (graph.Iterator, bool)
- func (qs *QuadStore) Quad(val graph.Value) quad.Quad
- func (qs *QuadStore) QuadDirection(val graph.Value, dir quad.Direction) graph.Value
- func (qs *QuadStore) QuadIterator(dir quad.Direction, v graph.Value) graph.Iterator
- func (qs *QuadStore) QuadsAllIterator() graph.Iterator
- func (qs *QuadStore) Size() int64
- func (qs *QuadStore) ValueOf(s quad.Value) graph.Value
- type Token
Constants ¶
View Source
const (
QuadStoreType = "gaedatastore"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DatabaseType string DatabasePath string DatabaseOptions map[string]interface{} ReplicationType string ReplicationOptions map[string]interface{} ListenHost string ListenPort string ReadOnly bool Timeout time.Duration LoadSize int }
Config defines the behavior of cayley database instances.
func LoadConf ¶
Load reads a JSON-encoded config contained in the given file. A zero value config is returned if the filename is empty.
func (*Config) MarshalJSON ¶
func (*Config) UnmarshalJSON ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func NewAllIterator ¶
func NewIterator ¶
func (*Iterator) Stats ¶
func (it *Iterator) Stats() graph.IteratorStats
TODO (panamafrancis) calculate costs
func (*Iterator) SubIterators ¶
No subiterators.
type MetadataEntry ¶
type QuadStore ¶
type QuadStore struct {
// contains filtered or unexported fields
}
func (*QuadStore) ApplyDeltas ¶
func (*QuadStore) ForRequest ¶
func (*QuadStore) NodesAllIterator ¶
func (*QuadStore) OptimizeIterator ¶
func (*QuadStore) QuadDirection ¶
func (*QuadStore) QuadIterator ¶
func (*QuadStore) QuadsAllIterator ¶
Click to show internal directories.
Click to hide internal directories.