content

package
v3.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LiveBlogPackage = "LiveBlogPackage"
View Source
const LiveBlogPost = "LiveBlogPost"

Variables

This section is empty.

Functions

This section is empty.

Types

type Service added in v3.4.0

type Service struct {
	// contains filtered or unexported fields
}

func NewContentService added in v3.4.0

func NewContentService(d *cmneo4j.Driver, a policy.Agent, l *logger.UPPLogger) Service

NewCypherDriver instantiate driver

func (Service) Check added in v3.4.0

func (cd Service) Check() error

Check - Feeds into the Healthcheck and checks whether we can connect to Neo and that the datastore isn't empty and also checks if we are connected to leader/writable node

func (Service) Count added in v3.4.0

func (cd Service) Count() (int, error)

Count - Returns a count of the number of content items in this Neo instance

func (Service) DecodeJSON added in v3.4.0

func (cd Service) DecodeJSON(dec *json.Decoder) (interface{}, string, error)

DecodeJSON - Decodes JSON into content

func (Service) Delete added in v3.4.0

func (cd Service) Delete(uuid string, transID string) (bool, error)

Delete - Deletes a content item

func (Service) Initialise added in v3.4.0

func (cd Service) Initialise() error

Initialise ensures constraints on content uuid

func (Service) Read added in v3.4.0

func (cd Service) Read(uuid string, transID string) (interface{}, bool, error)

Read - reads a content given a UUID

func (Service) Write added in v3.4.0

func (cd Service) Write(thing interface{}, transID string) error

Write - Writes a content node

Jump to

Keyboard shortcuts

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