Documentation ¶
Overview ¶
Package mysql handles data persistence for spaces.
Index ¶
- type Scope
- func (s Scope) Add(ctx domain.RequestContext, sp space.Space) (err error)
- func (s Scope) Delete(ctx domain.RequestContext, id string) (rows int64, err error)
- func (s Scope) Get(ctx domain.RequestContext, id string) (sp space.Space, err error)
- func (s Scope) GetAll(ctx domain.RequestContext) (sp []space.Space, err error)
- func (s Scope) GetViewable(ctx domain.RequestContext) (sp []space.Space, err error)
- func (s Scope) PublicSpaces(ctx domain.RequestContext, orgID string) (sp []space.Space, err error)
- func (s Scope) Update(ctx domain.RequestContext, sp space.Space) (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) GetViewable ¶ added in v1.54.0
GetViewable returns spaces that the user can see. Also handles which spaces can be seen by anonymous users.
func (Scope) PublicSpaces ¶
PublicSpaces returns spaces that anyone can see.
Click to show internal directories.
Click to hide internal directories.