Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCypherAnnotationsService ¶
func NewCypherAnnotationsService(cypherRunner neoutils.NeoConnection, platformVersion string, annotationLifecycle string) service
NewCypherAnnotationsService instantiate driver
Types ¶
type Service ¶
type Service interface { Write(contentUUID string, thing interface{}) (err error) Read(contentUUID string) (thing interface{}, found bool, err error) Delete(contentUUID string) (found bool, err error) Check() (err error) DecodeJSON(*json.Decoder) (thing interface{}, err error) Count() (int, error) Initialise() error }
Service interface. Compatible with the baserwftapp service EXCEPT for 1) the Write function, which has signature Write(thing interface{}) error... 2) the DecodeJson function, which has signature DecodeJSON(*json.Decoder) (thing interface{}, identity string, err error) The problem is that we have a list of things, and the uuid is for a related OTHER thing TODO - move to implement a shared defined Service interface?
type ValidationError ¶
type ValidationError struct {
Msg string
}
ValidationError is thrown when the annotations are not valid because mandatory information is missing
func (ValidationError) Error ¶
func (v ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.