Documentation
¶
Index ¶
- type CommentRepo
- type SessionRepo
- type TeamRepo
- func (r *TeamRepo) CreateTeam(teamInfo *models.TeamRequest) (sql.Result, error)
- func (r *TeamRepo) FindByID(ID int) (*models.TeamResponse, error)
- func (r *TeamRepo) FindByName(name string) (*[]models.Team, error)
- func (r *TeamRepo) GetAllTeams() (*[]models.Team, error)
- func (r *TeamRepo) UpdateTeam(team *models.Team) error
- type TicketRepo
- type UserRepo
- func (r UserRepo) CreateUser(request *models.NewUserRequest) (res sql.Result, err error)
- func (r UserRepo) FindByID(ID int) (*[]models.User, error)
- func (r UserRepo) GetAllUsers() (*[]models.User, error)
- func (r UserRepo) GetHashByEmail(email string) (*models.UserHash, error)
- func (r UserRepo) GetHashByID(ID int) (*models.UserHash, error)
- func (r UserRepo) GetUsersByName(sUserName string) (*[]models.User, error)
- func (r UserRepo) UpdateByID(uUser *models.UpdateUserSQL) (res sql.Result, err error)
- func (r UserRepo) UpdateTeam(userId int, teamId sql.NullInt32) (sql.Result, error)
- func (r UserRepo) UsernameOrEmailExists(name, email string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentRepo ¶
type CommentRepo struct {
// contains filtered or unexported fields
}
func NewCommentRepo ¶
func NewCommentRepo(db *sqlx.DB) *CommentRepo
func (CommentRepo) CreateComment ¶
func (r CommentRepo) CreateComment(request *models.NewCommentRequest) (sql.Result, error)
func (CommentRepo) FindCommentsByTicketID ¶
func (r CommentRepo) FindCommentsByTicketID(ID int) (*[]models.Comment, error)
type SessionRepo ¶
type SessionRepo struct {
// contains filtered or unexported fields
}
func NewSessionRepo ¶
func NewSessionRepo(db *sqlx.DB) *SessionRepo
func (SessionRepo) CreateSession ¶
func (r SessionRepo) CreateSession(userID int) (*models.Session, error)
func (SessionRepo) DeleteSession ¶
func (r SessionRepo) DeleteSession(sessionID string) (res sql.Result, err error)
func (SessionRepo) GetSessionUser ¶
func (r SessionRepo) GetSessionUser(sessionID string) (int, bool)
func (SessionRepo) IsSessionValid ¶
func (r SessionRepo) IsSessionValid(sessionID string) (exists bool, fresh bool)
type TeamRepo ¶
type TeamRepo struct {
// contains filtered or unexported fields
}
func NewTeamRepo ¶
func (*TeamRepo) CreateTeam ¶
type TicketRepo ¶
type TicketRepo struct {
// contains filtered or unexported fields
}
func NewTicketRepo ¶
func NewTicketRepo(db *sqlx.DB) *TicketRepo
func (*TicketRepo) CreateTicket ¶
func (r *TicketRepo) CreateTicket(ticket *models.NewTicketRequest) (sql.Result, error)
func (*TicketRepo) GetAllTickets ¶
func (r *TicketRepo) GetAllTickets() (*[]models.Ticket, error)
func (*TicketRepo) UpdateTicket ¶
func (r *TicketRepo) UpdateTicket(ticket *models.Ticket) error
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func (UserRepo) CreateUser ¶
func (UserRepo) GetHashByEmail ¶
func (UserRepo) GetUsersByName ¶
func (UserRepo) UpdateByID ¶
func (UserRepo) UpdateTeam ¶
func (UserRepo) UsernameOrEmailExists ¶
Click to show internal directories.
Click to hide internal directories.