uibuilderStore

package
v0.0.0-...-27c9e6d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UIbuilderStore

type UIbuilderStore interface {
	UpsertPage(ctx context.Context, page models.UIPage) error
	DeletePage(ctx context.Context, accountId, projectTag, pageName string) error
	ListPages(ctx context.Context, accountId, projectTag string) ([]string, error)
	ListAllPagesOfUser(ctx context.Context, accountId string) ([]string, error)
	GetPage(ctx context.Context, accountId, projectTag, pageName string) (models.UIPage, error)
	SetPageStatus(ctx context.Context, accountId, projectTag, pageName, status string, published, previewed bool) error
	GetUiInfrastructure(ctx context.Context, accountId, projectTag string) (models.UiInfrastructure, error)
	UpsertUiInfrastructure(ctx context.Context, uiInfra models.UiInfrastructure) error
	GetExportablePageByProjectName(ctx context.Context, accountId, projectName string) ([]models.ExportableUIPage, error)
	// This function deletes all the pages of a project
	DeleteAllPages(ctx context.Context, accountId, projectTag string) error

	UpsertGlobalStates(ctx context.Context, globalState models.GlobalState) error
	GetGlobalStates(ctx context.Context, accountId, projectName string) (globalState models.GlobalState, err error)

	AddPageHistory(ctx context.Context, pageHistory models.UIPageHistory) error
	GetPageHistory(ctx context.Context, accountId, projectTag, pageName string) ([]models.UIPageHistory, error)
}

func New

func New(db *db.DB) UIbuilderStore

Jump to

Keyboard shortcuts

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