content

package
v0.0.0-...-36288e9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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, entityId string) error
	GetContent(entityType, entityId string) (interface{}, error)
	GetContentBySlug(slug string) (interface{}, error)
	GetAll(namespace string) ([]interface{}, error)
	GetAllWithOptions(namespace string, search *entities.Search) (int, []interface{}, 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.SearchClientInterface,
) (Service, error)

Jump to

Keyboard shortcuts

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