Documentation
¶
Index ¶
- Variables
- type Graph
- func (n *Graph) AggregateConnections(ctx context.Context, filter *apipb.AggFilter) (*apipb.Number, error)
- func (n *Graph) AggregateDocs(ctx context.Context, filter *apipb.AggFilter) (*apipb.Number, error)
- func (n *Graph) AllConnections(ctx context.Context) (*apipb.Connections, error)
- func (n *Graph) AllDocs(ctx context.Context) (*apipb.Docs, error)
- func (g *Graph) Broadcast(ctx context.Context, message *apipb.OutboundMessage) (*empty.Empty, error)
- func (b *Graph) Close()
- func (g *Graph) ClusterState(ctx context.Context, _ *empty.Empty) (*apipb.RaftState, error)
- func (g *Graph) ConnectionTypes(ctx context.Context) ([]string, error)
- func (g *Graph) ConnectionsFrom(ctx context.Context, filter *apipb.ConnectFilter) (*apipb.Connections, error)
- func (g *Graph) ConnectionsTo(ctx context.Context, filter *apipb.ConnectFilter) (*apipb.Connections, error)
- func (g *Graph) CreateConnection(ctx context.Context, constructor *apipb.ConnectionConstructor) (*apipb.Connection, error)
- func (g *Graph) CreateConnections(ctx context.Context, constructors *apipb.ConnectionConstructors) (*apipb.Connections, error)
- func (g *Graph) CreateDoc(ctx context.Context, constructor *apipb.DocConstructor) (*apipb.Doc, error)
- func (g *Graph) CreateDocs(ctx context.Context, constructors *apipb.DocConstructors) (*apipb.Docs, error)
- func (g *Graph) DelConnection(ctx context.Context, path *apipb.Ref) (*empty.Empty, error)
- func (g *Graph) DelConnections(ctx context.Context, filter *apipb.Filter) (*empty.Empty, error)
- func (g *Graph) DelDoc(ctx context.Context, path *apipb.Ref) (*empty.Empty, error)
- func (g *Graph) DelDocs(ctx context.Context, filter *apipb.Filter) (*empty.Empty, error)
- func (g *Graph) DocTypes(ctx context.Context) ([]string, error)
- func (n *Graph) EditConnection(ctx context.Context, value *apipb.Edit) (*apipb.Connection, error)
- func (n *Graph) EditConnections(ctx context.Context, patch *apipb.EditFilter) (*apipb.Connections, error)
- func (n *Graph) EditDoc(ctx context.Context, value *apipb.Edit) (*apipb.Doc, error)
- func (n *Graph) EditDocs(ctx context.Context, patch *apipb.EditFilter) (*apipb.Docs, error)
- func (g *Graph) ExistsConnection(ctx context.Context, has *apipb.ExistsFilter) (*apipb.Boolean, error)
- func (g *Graph) ExistsDoc(ctx context.Context, has *apipb.ExistsFilter) (*apipb.Boolean, error)
- func (g *Graph) GetConnection(ctx context.Context, path *apipb.Ref) (*apipb.Connection, error)
- func (g *Graph) GetDoc(ctx context.Context, path *apipb.Ref) (*apipb.Doc, error)
- func (g *Graph) GetSchema(ctx context.Context, _ *empty.Empty) (*apipb.Schema, error)
- func (g *Graph) HasConnection(ctx context.Context, ref *apipb.Ref) (*apipb.Boolean, error)
- func (g *Graph) HasDoc(ctx context.Context, ref *apipb.Ref) (*apipb.Boolean, error)
- func (g *Graph) JoinCluster(ctx context.Context, peer *apipb.Peer) (*empty.Empty, error)
- func (g *Graph) Me(ctx context.Context, _ *empty.Empty) (*apipb.Doc, error)
- func (g *Graph) Ping(ctx context.Context, e *empty.Empty) (*apipb.Pong, error)
- func (g *Graph) PushConnectionConstructors(server apipb.DatabaseService_PushConnectionConstructorsServer) error
- func (g *Graph) PushDocConstructors(server apipb.DatabaseService_PushDocConstructorsServer) error
- func (g *Graph) PutConnection(ctx context.Context, connection *apipb.Connection) (*apipb.Connection, error)
- func (g *Graph) PutConnections(ctx context.Context, connections *apipb.Connections) (*apipb.Connections, error)
- func (g *Graph) PutDoc(ctx context.Context, doc *apipb.Doc) (*apipb.Doc, error)
- func (g *Graph) PutDocs(ctx context.Context, docs *apipb.Docs) (*apipb.Docs, error)
- func (g *Graph) Raft() *raft.Raft
- func (g *Graph) RaftFSM() *fsm.FSM
- func (g *Graph) RaftSecret() string
- func (g *Graph) SearchAndConnect(ctx context.Context, filter *apipb.SearchConnectFilter) (*apipb.Connections, error)
- func (g *Graph) SearchAndConnectMe(ctx context.Context, filter *apipb.SearchConnectMeFilter) (*apipb.Connections, error)
- func (e *Graph) SearchConnections(ctx context.Context, filter *apipb.Filter) (*apipb.Connections, error)
- func (n *Graph) SearchDocs(ctx context.Context, filter *apipb.Filter) (*apipb.Docs, error)
- func (g *Graph) SeedConnections(server apipb.DatabaseService_SeedConnectionsServer) error
- func (g *Graph) SeedDocs(server apipb.DatabaseService_SeedDocsServer) error
- func (g *Graph) SetAuthorizers(ctx context.Context, as *apipb.Authorizers) (*empty.Empty, error)
- func (g *Graph) SetConstraints(ctx context.Context, as *apipb.Constraints) (*empty.Empty, error)
- func (g *Graph) SetIndexes(ctx context.Context, index2 *apipb.Indexes) (*empty.Empty, error)
- func (g *Graph) SetRaft(raft *raft.Raft)
- func (g *Graph) SetTriggers(ctx context.Context, triggers *apipb.Triggers) (*empty.Empty, error)
- func (g *Graph) Stream(filter *apipb.StreamFilter, server apipb.DatabaseService_StreamServer) error
- func (g *Graph) StreamInterceptor() grpc.StreamServerInterceptor
- func (n *Graph) Traverse(ctx context.Context, filter *apipb.TraverseFilter) (*apipb.Traversals, error)
- func (n *Graph) TraverseMe(ctx context.Context, filter *apipb.TraverseMeFilter) (*apipb.Traversals, error)
- func (g *Graph) UnaryInterceptor() grpc.UnaryServerInterceptor
- type Opt
- func WithLogger(lgger *logger.Logger) Opt
- func WithMachine(mach *machine.Machine) Opt
- func WithRaftSecret(raftSecret string) Opt
- func WithRequireRequestAuthorizers(require bool) Opt
- func WithRequireResponseAuthorizers(require bool) Opt
- func WithRootUsers(rootUsers []string) Opt
- func WithStoragePath(storagePath string) Opt
- type Options
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) AggregateConnections ¶
func (*Graph) AggregateDocs ¶
func (*Graph) AllConnections ¶
func (*Graph) ClusterState ¶
func (*Graph) ConnectionTypes ¶
func (*Graph) ConnectionsFrom ¶
func (*Graph) ConnectionsTo ¶
func (*Graph) CreateConnection ¶
func (*Graph) CreateConnections ¶
func (*Graph) CreateDocs ¶
func (*Graph) DelConnection ¶
func (*Graph) DelConnections ¶
func (*Graph) EditConnection ¶
func (*Graph) EditConnections ¶
func (*Graph) ExistsConnection ¶
func (*Graph) GetConnection ¶
func (*Graph) HasConnection ¶
func (*Graph) JoinCluster ¶
func (*Graph) PushConnectionConstructors ¶
func (*Graph) PushDocConstructors ¶
func (*Graph) PutConnection ¶
func (*Graph) PutConnections ¶
func (*Graph) RaftSecret ¶
func (*Graph) SearchAndConnect ¶
func (*Graph) SearchAndConnectMe ¶
func (*Graph) SearchConnections ¶
func (*Graph) SearchDocs ¶
func (*Graph) SeedConnections ¶
func (*Graph) SetAuthorizers ¶
func (*Graph) SetConstraints ¶
func (*Graph) SetIndexes ¶
func (*Graph) SetTriggers ¶
func (*Graph) StreamInterceptor ¶
func (g *Graph) StreamInterceptor() grpc.StreamServerInterceptor
func (*Graph) TraverseMe ¶
func (*Graph) UnaryInterceptor ¶
func (g *Graph) UnaryInterceptor() grpc.UnaryServerInterceptor
type Opt ¶
type Opt func(o *Options)
func WithLogger ¶
func WithMachine ¶
func WithRaftSecret ¶
func WithRootUsers ¶
func WithStoragePath ¶
Click to show internal directories.
Click to hide internal directories.