content

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateContent(entityType string, entity interface{}) (string, error)
	DeleteContent(entityType string, entityIds ...string) error
	GetContent(entityType, entityId string) (interface{}, error)
	GetContentBySlug(slug string) (interface{}, error)
	GetAll(namespace string) ([]interface{}, error)
	GetAllWithOptions(namespace string, search *entities.Search) ([]interface{}, int, error)
	UpdateContent(entityType, entityId string, update interface{}) (interface{}, error)
	ExportCSV(entityName string) (*entities.ResponseStream, error)
}

func New

func New(
	db driver.Database,
	types map[string]content.Builder,
	searchClient driver.SearchInterface,
) (Service, error)

Jump to

Keyboard shortcuts

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