Documentation ¶
Index ¶
- type Scope
- func (s Scope) Add(ctx domain.RequestContext, b block.Block) (err error)
- func (s Scope) DecrementUsage(ctx domain.RequestContext, id string) (err error)
- func (s Scope) Delete(ctx domain.RequestContext, id string) (rows int64, err error)
- func (s Scope) Get(ctx domain.RequestContext, id string) (b block.Block, err error)
- func (s Scope) GetBySpace(ctx domain.RequestContext, spaceID string) (b []block.Block, err error)
- func (s Scope) IncrementUsage(ctx domain.RequestContext, id string) (err error)
- func (s Scope) RemoveReference(ctx domain.RequestContext, id string) (err error)
- func (s Scope) Update(ctx domain.RequestContext, b block.Block) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
Scope provides data access to MySQL.
func (Scope) DecrementUsage ¶
func (s Scope) DecrementUsage(ctx domain.RequestContext, id string) (err error)
DecrementUsage decrements usage counter for content block.
func (Scope) GetBySpace ¶
GetBySpace returns all reusable content scoped to given space.
func (Scope) IncrementUsage ¶
func (s Scope) IncrementUsage(ctx domain.RequestContext, id string) (err error)
IncrementUsage increments usage counter for content block.
func (Scope) RemoveReference ¶
func (s Scope) RemoveReference(ctx domain.RequestContext, id string) (err error)
RemoveReference clears page.blockid for given blockID.
Click to show internal directories.
Click to hide internal directories.