cache

package
v0.0.0-...-c896b06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	*db.DB
	// contains filtered or unexported fields
}

func New

func New(log *log.Logger, db *db.DB, key string, memcacheServer string) (*Cache, error)

func (*Cache) ContentDelete

func (c *Cache) ContentDelete(space space.Space, ct contenttype.ContentType, item content.Content) error

func (*Cache) ContentGet

func (c *Cache) ContentGet(space space.Space, ct contenttype.ContentType, contentID string) (content.Content, error)

func (*Cache) ContentNew

func (c *Cache) ContentNew(space space.Space, ct contenttype.ContentType, params []db.ContentNewParam) (content.Content, error)

func (*Cache) ContentTypeDelete

func (c *Cache) ContentTypeDelete(space space.Space, ct contenttype.ContentType) error

func (*Cache) ContentTypeGet

func (c *Cache) ContentTypeGet(space space.Space, thingID string) (contenttype.ContentType, error)

func (*Cache) ContentTypeNew

func (c *Cache) ContentTypeNew(space space.Space, name string, params []db.ContentTypeNewParam) (contenttype.ContentType, error)

func (*Cache) ContentTypeUpdate

func (c *Cache) ContentTypeUpdate(space space.Space, prev contenttype.ContentType, name string, newParams []db.ContentTypeNewParam, updateParams []db.ContentTypeUpdateParam) (contenttype.ContentType, error)

func (*Cache) ContentUpdate

func (c *Cache) ContentUpdate(space space.Space, ct contenttype.ContentType, item content.Content, newParams []db.ContentNewParam, updateParams []db.ContentUpdateParam) (content.Content, error)

func (*Cache) SpaceDelete

func (c *Cache) SpaceDelete(u user.User, s space.Space) error

func (*Cache) SpaceGet

func (c *Cache) SpaceGet(user user.User, thingID string) (space.Space, error)

func (*Cache) SpaceNew

func (c *Cache) SpaceNew(user user.User, name, desc string) (space.Space, error)

func (*Cache) SpaceUpdate

func (c *Cache) SpaceUpdate(user user.User, prev space.Space, name, desc string) (space.Space, error)

Jump to

Keyboard shortcuts

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