Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDao ¶
type PostgresDao interface { Get() (*[]image.Material, error) GetOne(uint) (*image.Material, error) Create(*image.Material) error Update(*image.Material) error Delete(uint) error }
PostgresDao is an interface for accessing PostgreSQL
func NewPostgres ¶
func NewPostgres(db *gorm.DB) (PostgresDao, error)
NewPostgres is a function that defines a new dao instance
type RedisDao ¶
RedisDao is an interface for accessing Redis
func NewRedisDao ¶
NewRedisDao creates a new Redis Client
type StorageDao ¶
type StorageDao interface { CheckExists(string, string) (bool, error) GetObject(string, string) ([]byte, error) WriteObject(string, string, string, []byte) error RemoveObject(string, string) (bool, error) }
StorageDao is an interface for managing Cloud Storage
func NewStorage ¶
func NewStorage(c *storage.Client) StorageDao
NewStorage creates a new Cloud Storage Manager
Click to show internal directories.
Click to hide internal directories.