Documentation ¶
Index ¶
- Constants
- type Team
- type TeamRbacObjects
- type TeamRepository
- type TeamRepositoryImpl
- func (impl TeamRepositoryImpl) FindAllActive() ([]Team, error)
- func (impl TeamRepositoryImpl) FindAllActiveTeamNames() ([]string, error)
- func (repo TeamRepositoryImpl) FindByIds(ids []*int) ([]*Team, error)
- func (impl TeamRepositoryImpl) FindByTeamName(name string) (Team, error)
- func (impl TeamRepositoryImpl) FindOne(id int) (Team, error)
- func (repo TeamRepositoryImpl) GetConnection() *pg.DB
- func (impl TeamRepositoryImpl) MarkTeamDeleted(team *Team, tx *pg.Tx) error
- func (impl TeamRepositoryImpl) Save(team *Team) error
- func (impl TeamRepositoryImpl) Update(team *Team) error
Constants ¶
View Source
const UNASSIGNED_PROJECT = "unassigned"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamRbacObjects ¶
type TeamRepository ¶
type TeamRepository interface { Save(team *Team) error FindAllActive() ([]Team, error) FindOne(id int) (Team, error) FindByTeamName(name string) (Team, error) Update(team *Team) error MarkTeamDeleted(team *Team, tx *pg.Tx) error GetConnection() *pg.DB FindByIds(ids []*int) ([]*Team, error) FindAllActiveTeamNames() ([]string, error) }
type TeamRepositoryImpl ¶
type TeamRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewTeamRepositoryImpl ¶
func NewTeamRepositoryImpl(dbConnection *pg.DB) *TeamRepositoryImpl
func (TeamRepositoryImpl) FindAllActive ¶
func (impl TeamRepositoryImpl) FindAllActive() ([]Team, error)
func (TeamRepositoryImpl) FindAllActiveTeamNames ¶
func (impl TeamRepositoryImpl) FindAllActiveTeamNames() ([]string, error)
func (TeamRepositoryImpl) FindByIds ¶
func (repo TeamRepositoryImpl) FindByIds(ids []*int) ([]*Team, error)
func (TeamRepositoryImpl) FindByTeamName ¶
func (impl TeamRepositoryImpl) FindByTeamName(name string) (Team, error)
func (TeamRepositoryImpl) GetConnection ¶
func (repo TeamRepositoryImpl) GetConnection() *pg.DB
func (TeamRepositoryImpl) MarkTeamDeleted ¶
func (impl TeamRepositoryImpl) MarkTeamDeleted(team *Team, tx *pg.Tx) error
func (TeamRepositoryImpl) Save ¶
func (impl TeamRepositoryImpl) Save(team *Team) error
func (TeamRepositoryImpl) Update ¶
func (impl TeamRepositoryImpl) Update(team *Team) error
Click to show internal directories.
Click to hide internal directories.