annotations

package
v0.1.9-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2017 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL