Documentation
¶
Index ¶
- func PostgresQuery[RowType any](query string, args ...interface{}) ([]RowType, error)
- func PostgresQueryJson[RowType any](query string, args ...interface{}) ([]byte, error)
- func PostgresQueryOne[RowType any](query string, args ...interface{}) (*RowType, error)
- func PostgresQueryOneJson[RowType any](query string, args ...interface{}) ([]byte, error)
- type Backend
- type Databases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostgresQuery ¶
func PostgresQueryJson ¶
func PostgresQueryOne ¶
Types ¶
type Backend ¶
type Backend struct { Databases *Databases WSConnections []*websocket.Conn WSConnectionsLock sync.Mutex RoundsConfig *config.RoundsConfig CanvasConfig *config.CanvasConfig BackendConfig *config.BackendConfig AdminMode bool }
var ArtPeaceBackend *Backend
func NewBackend ¶
func NewBackend(databases *Databases, roundsConfig *config.RoundsConfig, canvasConfig *config.CanvasConfig, backendConfig *config.BackendConfig, adminMode bool) *Backend
func (*Backend) GetBackendUrl ¶
type Databases ¶
type Databases struct { DatabaseConfig *config.DatabaseConfig Redis *redis.Client Postgres *pgxpool.Pool }
func NewDatabases ¶
func NewDatabases(databaseConfig *config.DatabaseConfig) *Databases
Click to show internal directories.
Click to hide internal directories.