Documentation ¶
Index ¶
- type FileMysqlRepo
- func (repo *FileMysqlRepo) CreateFileMeta(ctx context.Context, file *model.DBFile) (*model.DBFile, error)
- func (repo *FileMysqlRepo) DeleteFileMeta(ctx context.Context, id uuid.UUID) error
- func (repo *FileMysqlRepo) GetFileMeta(ctx context.Context, id uuid.UUID) (*model.DBFile, error)
- func (repo *FileMysqlRepo) UpdateFileMeta(ctx context.Context, file *model.DBFile) (*model.DBFile, error)
- type MySQL
- type UserMysqlRepo
- func (repo *UserMysqlRepo) CreateUser(ctx context.Context, user *model.DBUser) (*model.DBUser, error)
- func (repo *UserMysqlRepo) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (repo *UserMysqlRepo) GetUser(ctx context.Context, id uuid.UUID) (*model.DBUser, error)
- func (repo *UserMysqlRepo) UpdateUser(ctx context.Context, user *model.DBUser) (*model.DBUser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileMysqlRepo ¶
type FileMysqlRepo struct {
// contains filtered or unexported fields
}
FileMysqlRepo ...
func (*FileMysqlRepo) CreateFileMeta ¶
func (repo *FileMysqlRepo) CreateFileMeta(ctx context.Context, file *model.DBFile) (*model.DBFile, error)
CreateFileMeta creates file in Postgres
func (*FileMysqlRepo) DeleteFileMeta ¶
DeleteFileMeta deletes file in Postgres
func (*FileMysqlRepo) GetFileMeta ¶
GetFileMeta retrieves file from Postgres
func (*FileMysqlRepo) UpdateFileMeta ¶
func (repo *FileMysqlRepo) UpdateFileMeta(ctx context.Context, file *model.DBFile) (*model.DBFile, error)
UpdateFileMeta updates file in Postgres
type UserMysqlRepo ¶
type UserMysqlRepo struct {
// contains filtered or unexported fields
}
UserMysqlRepo ...
func (*UserMysqlRepo) CreateUser ¶
func (repo *UserMysqlRepo) CreateUser(ctx context.Context, user *model.DBUser) (*model.DBUser, error)
CreateUser creates user in Postgres
func (*UserMysqlRepo) DeleteUser ¶
DeleteUser deletes user in Postgres
func (*UserMysqlRepo) UpdateUser ¶
func (repo *UserMysqlRepo) UpdateUser(ctx context.Context, user *model.DBUser) (*model.DBUser, error)
UpdateUser updates user in Postgres
Click to show internal directories.
Click to hide internal directories.