Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage provides database connection and common queries. This is a lightweight shared storage implementation for services that need basic database access without the full backend storage layer. It wraps the shared pg storage primitives with application-specific queries.
func New ¶
New creates a new storage instance with database connection. Uses lightweight connection pool settings suitable for frontend/worker services.
func (*Storage) GetBoardsWithPermissions ¶
GetBoardsWithPermissions returns a map of board short names to their allowed email domains. Returns nil for boards without restrictions (public boards). This method is used by the board_access middleware to enforce access control.