Documentation ¶
Index ¶
- func NewAuthLogRepository() authlog.Repository
- func NewCurrencyRepository() currency.Repository
- func NewDialogueRepository() dialogue.Repository
- func NewEmployeeRepository() employee.Repository
- func NewPermissionRepository() permission.Repository
- func NewPositionRepository() position.Repository
- func NewProjectRepository() project.Repository
- func NewProjectStageRepository() stage.Repository
- func NewPromptRepository() prompt.Repository
- func NewRoleRepository() role.Repository
- func NewSessionRepository() session.Repository
- func NewUploadRepository() upload.Repository
- func NewUserRepository() user.Repository
- func ToDBCurrency(entity *currency.Currency) *models.Currency
- func ToDBUpload(upload *upload.Upload) *models.Upload
- func ToDomainCurrency(dbCurrency *models.Currency) (*currency.Currency, error)
- func ToDomainUpload(dbUpload *models.Upload) *upload.Upload
- type FSStorage
- type GormAuthLogRepository
- func (g *GormAuthLogRepository) Count(ctx context.Context) (int64, error)
- func (g *GormAuthLogRepository) Create(ctx context.Context, data *authlog.AuthenticationLog) error
- func (g *GormAuthLogRepository) Delete(ctx context.Context, id int64) error
- func (g *GormAuthLogRepository) GetAll(ctx context.Context) ([]*authlog.AuthenticationLog, error)
- func (g *GormAuthLogRepository) GetByID(ctx context.Context, id int64) (*authlog.AuthenticationLog, error)
- func (g *GormAuthLogRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*authlog.AuthenticationLog, error)
- func (g *GormAuthLogRepository) Update(ctx context.Context, data *authlog.AuthenticationLog) error
- type GormCurrencyRepository
- func (g *GormCurrencyRepository) Count(ctx context.Context) (uint, error)
- func (g *GormCurrencyRepository) Create(ctx context.Context, entity *currency.Currency) error
- func (g *GormCurrencyRepository) CreateOrUpdate(ctx context.Context, currency *currency.Currency) error
- func (g *GormCurrencyRepository) Delete(ctx context.Context, id uint) error
- func (g *GormCurrencyRepository) GetAll(ctx context.Context) ([]*currency.Currency, error)
- func (g *GormCurrencyRepository) GetByID(ctx context.Context, id uint) (*currency.Currency, error)
- func (g *GormCurrencyRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*currency.Currency, error)
- func (g *GormCurrencyRepository) Update(ctx context.Context, entity *currency.Currency) error
- type GormDialogueRepository
- func (g *GormDialogueRepository) Count(ctx context.Context) (int64, error)
- func (g *GormDialogueRepository) Create(ctx context.Context, data *dialogue.Dialogue) error
- func (g *GormDialogueRepository) Delete(ctx context.Context, id int64) error
- func (g *GormDialogueRepository) GetAll(ctx context.Context) ([]*dialogue.Dialogue, error)
- func (g *GormDialogueRepository) GetByID(ctx context.Context, id int64) (*dialogue.Dialogue, error)
- func (g *GormDialogueRepository) GetByUserID(ctx context.Context, userID int64) ([]*dialogue.Dialogue, error)
- func (g *GormDialogueRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*dialogue.Dialogue, error)
- func (g *GormDialogueRepository) Update(ctx context.Context, data *dialogue.Dialogue) error
- type GormEmployeeRepository
- func (g *GormEmployeeRepository) Count(ctx context.Context) (int64, error)
- func (g *GormEmployeeRepository) Create(ctx context.Context, data *employee.Employee) error
- func (g *GormEmployeeRepository) Delete(ctx context.Context, id uint) error
- func (g *GormEmployeeRepository) GetAll(ctx context.Context) ([]*employee.Employee, error)
- func (g *GormEmployeeRepository) GetByID(ctx context.Context, id uint) (*employee.Employee, error)
- func (g *GormEmployeeRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*employee.Employee, error)
- func (g *GormEmployeeRepository) Update(ctx context.Context, data *employee.Employee) error
- type GormPermissionRepository
- func (g *GormPermissionRepository) Count(ctx context.Context) (int64, error)
- func (g *GormPermissionRepository) Create(ctx context.Context, data *permission.Permission) error
- func (g *GormPermissionRepository) CreateOrUpdate(ctx context.Context, data *permission.Permission) error
- func (g *GormPermissionRepository) Delete(ctx context.Context, id uint) error
- func (g *GormPermissionRepository) GetAll(ctx context.Context) ([]*permission.Permission, error)
- func (g *GormPermissionRepository) GetByID(ctx context.Context, id uint) (*permission.Permission, error)
- func (g *GormPermissionRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*permission.Permission, error)
- func (g *GormPermissionRepository) Update(ctx context.Context, data *permission.Permission) error
- type GormPositionRepository
- func (g *GormPositionRepository) Count(ctx context.Context) (int64, error)
- func (g *GormPositionRepository) Create(ctx context.Context, data *position.Position) error
- func (g *GormPositionRepository) Delete(ctx context.Context, id int64) error
- func (g *GormPositionRepository) GetAll(ctx context.Context) ([]*position.Position, error)
- func (g *GormPositionRepository) GetByID(ctx context.Context, id int64) (*position.Position, error)
- func (g *GormPositionRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*position.Position, error)
- func (g *GormPositionRepository) Update(ctx context.Context, data *position.Position) error
- type GormProjectRepository
- func (g *GormProjectRepository) Count(ctx context.Context) (uint, error)
- func (g *GormProjectRepository) Create(ctx context.Context, data *project.Project) error
- func (g *GormProjectRepository) Delete(ctx context.Context, id uint) error
- func (g *GormProjectRepository) GetAll(ctx context.Context) ([]*project.Project, error)
- func (g *GormProjectRepository) GetByID(ctx context.Context, id uint) (*project.Project, error)
- func (g *GormProjectRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*project.Project, error)
- func (g *GormProjectRepository) Update(ctx context.Context, data *project.Project) error
- type GormPromptRepository
- func (g *GormPromptRepository) Count(ctx context.Context) (int64, error)
- func (g *GormPromptRepository) Create(ctx context.Context, data *prompt.Prompt) error
- func (g *GormPromptRepository) Delete(ctx context.Context, id int64) error
- func (g *GormPromptRepository) GetAll(ctx context.Context) ([]*prompt.Prompt, error)
- func (g *GormPromptRepository) GetByID(ctx context.Context, id string) (*prompt.Prompt, error)
- func (g *GormPromptRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*prompt.Prompt, error)
- func (g *GormPromptRepository) Update(ctx context.Context, data *prompt.Prompt) error
- type GormRoleRepository
- func (g *GormRoleRepository) Count(ctx context.Context) (int64, error)
- func (g *GormRoleRepository) Create(ctx context.Context, data *role.Role) error
- func (g *GormRoleRepository) CreateOrUpdate(ctx context.Context, data *role.Role) error
- func (g *GormRoleRepository) Delete(ctx context.Context, id int64) error
- func (g *GormRoleRepository) GetAll(ctx context.Context) ([]*role.Role, error)
- func (g *GormRoleRepository) GetByID(ctx context.Context, id int64) (*role.Role, error)
- func (g *GormRoleRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*role.Role, error)
- func (g *GormRoleRepository) Update(ctx context.Context, data *role.Role) error
- type GormSessionRepository
- func (g *GormSessionRepository) Count(ctx context.Context) (int64, error)
- func (g *GormSessionRepository) Create(ctx context.Context, data *session.Session) error
- func (g *GormSessionRepository) Delete(ctx context.Context, id int64) error
- func (g *GormSessionRepository) GetAll(ctx context.Context) ([]*session.Session, error)
- func (g *GormSessionRepository) GetByToken(ctx context.Context, token string) (*session.Session, error)
- func (g *GormSessionRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*session.Session, error)
- func (g *GormSessionRepository) Update(ctx context.Context, data *session.Session) error
- type GormStageRepository
- func (g *GormStageRepository) Count(ctx context.Context) (uint, error)
- func (g *GormStageRepository) Create(ctx context.Context, entity *stage.ProjectStage) error
- func (g *GormStageRepository) Delete(ctx context.Context, id uint) error
- func (g *GormStageRepository) GetAll(ctx context.Context) ([]*stage.ProjectStage, error)
- func (g *GormStageRepository) GetByID(ctx context.Context, id uint) (*stage.ProjectStage, error)
- func (g *GormStageRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*stage.ProjectStage, error)
- func (g *GormStageRepository) Update(ctx context.Context, entity *stage.ProjectStage) error
- type GormUploadRepository
- func (g *GormUploadRepository) Count(ctx context.Context) (int64, error)
- func (g *GormUploadRepository) Create(ctx context.Context, data *upload.Upload) error
- func (g *GormUploadRepository) Delete(ctx context.Context, id uint) error
- func (g *GormUploadRepository) GetAll(ctx context.Context) ([]*upload.Upload, error)
- func (g *GormUploadRepository) GetByHash(ctx context.Context, hash string) (*upload.Upload, error)
- func (g *GormUploadRepository) GetByID(ctx context.Context, id uint) (*upload.Upload, error)
- func (g *GormUploadRepository) GetPaginated(ctx context.Context, params *upload.FindParams) ([]*upload.Upload, error)
- func (g *GormUploadRepository) Update(ctx context.Context, data *upload.Upload) error
- type GormUserRepository
- func (g *GormUserRepository) Count(ctx context.Context) (int64, error)
- func (g *GormUserRepository) Create(ctx context.Context, user *user.User) error
- func (g *GormUserRepository) CreateOrUpdate(ctx context.Context, user *user.User) error
- func (g *GormUserRepository) Delete(ctx context.Context, id uint) error
- func (g *GormUserRepository) GetAll(ctx context.Context) ([]*user.User, error)
- func (g *GormUserRepository) GetByEmail(ctx context.Context, email string) (*user.User, error)
- func (g *GormUserRepository) GetByID(ctx context.Context, id uint) (*user.User, error)
- func (g *GormUserRepository) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*user.User, error)
- func (g *GormUserRepository) Update(ctx context.Context, user *user.User) error
- func (g *GormUserRepository) UpdateLastAction(ctx context.Context, id uint) error
- func (g *GormUserRepository) UpdateLastLogin(ctx context.Context, id uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthLogRepository ¶
func NewAuthLogRepository() authlog.Repository
func NewCurrencyRepository ¶
func NewCurrencyRepository() currency.Repository
func NewDialogueRepository ¶
func NewDialogueRepository() dialogue.Repository
func NewEmployeeRepository ¶
func NewEmployeeRepository() employee.Repository
func NewPermissionRepository ¶
func NewPermissionRepository() permission.Repository
func NewPositionRepository ¶
func NewPositionRepository() position.Repository
func NewProjectRepository ¶
func NewProjectRepository() project.Repository
func NewProjectStageRepository ¶
func NewProjectStageRepository() stage.Repository
func NewPromptRepository ¶
func NewPromptRepository() prompt.Repository
func NewRoleRepository ¶
func NewRoleRepository() role.Repository
func NewSessionRepository ¶
func NewSessionRepository() session.Repository
func NewUploadRepository ¶
func NewUploadRepository() upload.Repository
func NewUserRepository ¶
func NewUserRepository() user.Repository
func ToDomainCurrency ¶
Types ¶
type GormAuthLogRepository ¶
type GormAuthLogRepository struct{}
func (*GormAuthLogRepository) Count ¶
func (g *GormAuthLogRepository) Count(ctx context.Context) (int64, error)
func (*GormAuthLogRepository) Create ¶
func (g *GormAuthLogRepository) Create(ctx context.Context, data *authlog.AuthenticationLog) error
func (*GormAuthLogRepository) Delete ¶
func (g *GormAuthLogRepository) Delete(ctx context.Context, id int64) error
func (*GormAuthLogRepository) GetAll ¶
func (g *GormAuthLogRepository) GetAll(ctx context.Context) ([]*authlog.AuthenticationLog, error)
func (*GormAuthLogRepository) GetByID ¶
func (g *GormAuthLogRepository) GetByID(ctx context.Context, id int64) (*authlog.AuthenticationLog, error)
func (*GormAuthLogRepository) GetPaginated ¶
func (g *GormAuthLogRepository) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*authlog.AuthenticationLog, error)
func (*GormAuthLogRepository) Update ¶
func (g *GormAuthLogRepository) Update(ctx context.Context, data *authlog.AuthenticationLog) error
type GormCurrencyRepository ¶
type GormCurrencyRepository struct{}
func (*GormCurrencyRepository) Count ¶
func (g *GormCurrencyRepository) Count(ctx context.Context) (uint, error)
func (*GormCurrencyRepository) CreateOrUpdate ¶
func (*GormCurrencyRepository) Delete ¶
func (g *GormCurrencyRepository) Delete(ctx context.Context, id uint) error
func (*GormCurrencyRepository) GetPaginated ¶
type GormDialogueRepository ¶
type GormDialogueRepository struct{}
func (*GormDialogueRepository) Count ¶
func (g *GormDialogueRepository) Count(ctx context.Context) (int64, error)
func (*GormDialogueRepository) Delete ¶
func (g *GormDialogueRepository) Delete(ctx context.Context, id int64) error
func (*GormDialogueRepository) GetByUserID ¶
func (*GormDialogueRepository) GetPaginated ¶
type GormEmployeeRepository ¶
type GormEmployeeRepository struct{}
func (*GormEmployeeRepository) Count ¶
func (g *GormEmployeeRepository) Count(ctx context.Context) (int64, error)
func (*GormEmployeeRepository) Delete ¶
func (g *GormEmployeeRepository) Delete(ctx context.Context, id uint) error
func (*GormEmployeeRepository) GetPaginated ¶
type GormPermissionRepository ¶
type GormPermissionRepository struct{}
func (*GormPermissionRepository) Count ¶
func (g *GormPermissionRepository) Count(ctx context.Context) (int64, error)
func (*GormPermissionRepository) Create ¶
func (g *GormPermissionRepository) Create(ctx context.Context, data *permission.Permission) error
func (*GormPermissionRepository) CreateOrUpdate ¶
func (g *GormPermissionRepository) CreateOrUpdate(ctx context.Context, data *permission.Permission) error
func (*GormPermissionRepository) Delete ¶
func (g *GormPermissionRepository) Delete(ctx context.Context, id uint) error
func (*GormPermissionRepository) GetAll ¶
func (g *GormPermissionRepository) GetAll(ctx context.Context) ([]*permission.Permission, error)
func (*GormPermissionRepository) GetByID ¶
func (g *GormPermissionRepository) GetByID(ctx context.Context, id uint) (*permission.Permission, error)
func (*GormPermissionRepository) GetPaginated ¶
func (g *GormPermissionRepository) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*permission.Permission, error)
func (*GormPermissionRepository) Update ¶
func (g *GormPermissionRepository) Update(ctx context.Context, data *permission.Permission) error
type GormPositionRepository ¶
type GormPositionRepository struct{}
func (*GormPositionRepository) Count ¶
func (g *GormPositionRepository) Count(ctx context.Context) (int64, error)
func (*GormPositionRepository) Delete ¶
func (g *GormPositionRepository) Delete(ctx context.Context, id int64) error
func (*GormPositionRepository) GetPaginated ¶
type GormProjectRepository ¶
type GormProjectRepository struct{}
func (*GormProjectRepository) Count ¶
func (g *GormProjectRepository) Count(ctx context.Context) (uint, error)
func (*GormProjectRepository) Delete ¶
func (g *GormProjectRepository) Delete(ctx context.Context, id uint) error
func (*GormProjectRepository) GetPaginated ¶
type GormPromptRepository ¶
type GormPromptRepository struct{}
func (*GormPromptRepository) Count ¶
func (g *GormPromptRepository) Count(ctx context.Context) (int64, error)
func (*GormPromptRepository) Delete ¶
func (g *GormPromptRepository) Delete(ctx context.Context, id int64) error
func (*GormPromptRepository) GetPaginated ¶
type GormRoleRepository ¶
type GormRoleRepository struct{}
func (*GormRoleRepository) Count ¶
func (g *GormRoleRepository) Count(ctx context.Context) (int64, error)
func (*GormRoleRepository) CreateOrUpdate ¶
func (*GormRoleRepository) Delete ¶
func (g *GormRoleRepository) Delete(ctx context.Context, id int64) error
func (*GormRoleRepository) GetPaginated ¶
type GormSessionRepository ¶
type GormSessionRepository struct{}
func (*GormSessionRepository) Count ¶
func (g *GormSessionRepository) Count(ctx context.Context) (int64, error)
func (*GormSessionRepository) Delete ¶
func (g *GormSessionRepository) Delete(ctx context.Context, id int64) error
func (*GormSessionRepository) GetByToken ¶
func (*GormSessionRepository) GetPaginated ¶
type GormStageRepository ¶
type GormStageRepository struct{}
func (*GormStageRepository) Count ¶
func (g *GormStageRepository) Count(ctx context.Context) (uint, error)
func (*GormStageRepository) Create ¶
func (g *GormStageRepository) Create(ctx context.Context, entity *stage.ProjectStage) error
func (*GormStageRepository) Delete ¶
func (g *GormStageRepository) Delete(ctx context.Context, id uint) error
func (*GormStageRepository) GetAll ¶
func (g *GormStageRepository) GetAll(ctx context.Context) ([]*stage.ProjectStage, error)
func (*GormStageRepository) GetByID ¶
func (g *GormStageRepository) GetByID(ctx context.Context, id uint) (*stage.ProjectStage, error)
func (*GormStageRepository) GetPaginated ¶
func (g *GormStageRepository) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*stage.ProjectStage, error)
func (*GormStageRepository) Update ¶
func (g *GormStageRepository) Update(ctx context.Context, entity *stage.ProjectStage) error
type GormUploadRepository ¶
type GormUploadRepository struct{}
func (*GormUploadRepository) Count ¶
func (g *GormUploadRepository) Count(ctx context.Context) (int64, error)
func (*GormUploadRepository) Delete ¶
func (g *GormUploadRepository) Delete(ctx context.Context, id uint) error
func (*GormUploadRepository) GetPaginated ¶
func (g *GormUploadRepository) GetPaginated( ctx context.Context, params *upload.FindParams, ) ([]*upload.Upload, error)
type GormUserRepository ¶
type GormUserRepository struct{}
func (*GormUserRepository) Count ¶
func (g *GormUserRepository) Count(ctx context.Context) (int64, error)
func (*GormUserRepository) CreateOrUpdate ¶
func (*GormUserRepository) Delete ¶
func (g *GormUserRepository) Delete(ctx context.Context, id uint) error
func (*GormUserRepository) GetByEmail ¶
func (*GormUserRepository) GetPaginated ¶
func (*GormUserRepository) UpdateLastAction ¶
func (g *GormUserRepository) UpdateLastAction(ctx context.Context, id uint) error
func (*GormUserRepository) UpdateLastLogin ¶
func (g *GormUserRepository) UpdateLastLogin(ctx context.Context, id uint) error
Source Files ¶
- authlog_repository.go
- currency_repository.go
- dialogue_repository.go
- employee_repository.go
- mappers.go
- permission_repository.go
- position_repository.go
- project_repository.go
- prompt_repository.go
- role_repository.go
- session_repository.go
- stage_repository.go
- upload_fs_storage.go
- upload_repository.go
- user_repository.go
Click to show internal directories.
Click to hide internal directories.