mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-18 09:35:25 +02:00
17 lines
596 B
Go
17 lines
596 B
Go
package store
|
|
|
|
import "github.com/mattermost/mattermost-octo-tasks/server/model"
|
|
|
|
// Store represents the abstraction of the data storage
|
|
type Store interface {
|
|
GetBlocksWithParentAndType(parentID string, blockType string) ([]model.Block, error)
|
|
GetBlocksWithParent(parentID string) ([]model.Block, error)
|
|
GetBlocksWithType(blockType string) ([]model.Block, error)
|
|
GetSubTree(blockID string) ([]model.Block, error)
|
|
GetAllBlocks() ([]model.Block, error)
|
|
GetParentID(blockID string) (string, error)
|
|
InsertBlock(block model.Block) error
|
|
DeleteBlock(blockID string) error
|
|
Shutdown() error
|
|
}
|