Documentation ¶
Index ¶
- type CypherDriver
- func (pcd CypherDriver) Check() error
- func (pcd CypherDriver) Count() (int, error)
- func (pcd CypherDriver) DecodeJSON(dec *json.Decoder) (interface{}, string, error)
- func (pcd CypherDriver) Delete(uuid, transactionID string) (bool, error)
- func (pcd CypherDriver) Initialise() error
- func (pcd CypherDriver) Read(uuid, transactionID string) (interface{}, bool, error)
- func (pcd CypherDriver) Write(thing interface{}, transactionID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CypherDriver ¶
type CypherDriver struct {
// contains filtered or unexported fields
}
CypherDriver - CypherDriver
func NewCypherDriver ¶
func NewCypherDriver(cypherRunner neoutils.NeoConnection) CypherDriver
NewCypherDriver instantiate driver
func (CypherDriver) Check ¶
func (pcd CypherDriver) Check() error
Check - Feeds into the Healthcheck and checks whether we can connect to Neo and that the datastore isn't empty
func (CypherDriver) Count ¶
func (pcd CypherDriver) Count() (int, error)
Count - Returns a count of the number of roles in this Neo instance
func (CypherDriver) DecodeJSON ¶
func (pcd CypherDriver) DecodeJSON(dec *json.Decoder) (interface{}, string, error)
DecodeJSON - Decodes JSON into role
func (CypherDriver) Delete ¶
func (pcd CypherDriver) Delete(uuid, transactionID string) (bool, error)
Delete - Deletes a Role
func (CypherDriver) Initialise ¶
func (pcd CypherDriver) Initialise() error
Initialise initialisation of the indexes
func (CypherDriver) Read ¶
func (pcd CypherDriver) Read(uuid, transactionID string) (interface{}, bool, error)
Read - reads a role given a UUID
func (CypherDriver) Write ¶
func (pcd CypherDriver) Write(thing interface{}, transactionID string) error
Write - Writes a Role node
Click to show internal directories.
Click to hide internal directories.