Documentation ¶
Index ¶
- Constants
- type Team
- type TeamBean
- 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
- type TeamRequest
- type TeamService
- type TeamServiceImpl
- func (impl TeamServiceImpl) Create(request *TeamRequest) (*TeamRequest, error)
- func (impl TeamServiceImpl) Delete(deleteRequest *TeamRequest) error
- func (impl TeamServiceImpl) FetchAllActive() ([]TeamRequest, error)
- func (impl TeamServiceImpl) FetchForAutocomplete() ([]TeamRequest, error)
- func (impl TeamServiceImpl) FetchOne(teamId int) (*TeamRequest, error)
- func (impl TeamServiceImpl) FindByIds(ids []*int) ([]*TeamBean, error)
- func (impl TeamServiceImpl) FindByTeamName(teamName string) (*TeamRequest, error)
- func (impl TeamServiceImpl) Update(request *TeamRequest) (*TeamRequest, error)
Constants ¶
View Source
const UNASSIGNED_PROJECT = "unassigned"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamRbacObjects ¶ added in v0.3.9
type TeamRepository ¶ added in v0.3.9
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 ¶ added in v0.3.9
type TeamRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewTeamRepositoryImpl ¶ added in v0.3.9
func NewTeamRepositoryImpl(dbConnection *pg.DB) *TeamRepositoryImpl
func (TeamRepositoryImpl) FindAllActive ¶ added in v0.3.9
func (impl TeamRepositoryImpl) FindAllActive() ([]Team, error)
func (TeamRepositoryImpl) FindAllActiveTeamNames ¶ added in v0.6.17
func (impl TeamRepositoryImpl) FindAllActiveTeamNames() ([]string, error)
func (TeamRepositoryImpl) FindByIds ¶ added in v0.3.9
func (repo TeamRepositoryImpl) FindByIds(ids []*int) ([]*Team, error)
func (TeamRepositoryImpl) FindByTeamName ¶ added in v0.3.9
func (impl TeamRepositoryImpl) FindByTeamName(name string) (Team, error)
func (TeamRepositoryImpl) FindOne ¶ added in v0.3.9
func (impl TeamRepositoryImpl) FindOne(id int) (Team, error)
func (TeamRepositoryImpl) GetConnection ¶ added in v0.3.15
func (repo TeamRepositoryImpl) GetConnection() *pg.DB
func (TeamRepositoryImpl) MarkTeamDeleted ¶ added in v0.3.15
func (impl TeamRepositoryImpl) MarkTeamDeleted(team *Team, tx *pg.Tx) error
func (TeamRepositoryImpl) Save ¶ added in v0.3.9
func (impl TeamRepositoryImpl) Save(team *Team) error
func (TeamRepositoryImpl) Update ¶ added in v0.3.9
func (impl TeamRepositoryImpl) Update(team *Team) error
type TeamRequest ¶
type TeamService ¶
type TeamService interface { Create(request *TeamRequest) (*TeamRequest, error) FetchAllActive() ([]TeamRequest, error) FetchOne(id int) (*TeamRequest, error) Update(request *TeamRequest) (*TeamRequest, error) Delete(request *TeamRequest) error FetchForAutocomplete() ([]TeamRequest, error) FindByIds(ids []*int) ([]*TeamBean, error) FindByTeamName(teamName string) (*TeamRequest, error) }
type TeamServiceImpl ¶
type TeamServiceImpl struct {
// contains filtered or unexported fields
}
func NewTeamServiceImpl ¶
func NewTeamServiceImpl(logger *zap.SugaredLogger, teamRepository TeamRepository, userAuthService user.UserAuthService) *TeamServiceImpl
func (TeamServiceImpl) Create ¶
func (impl TeamServiceImpl) Create(request *TeamRequest) (*TeamRequest, error)
func (TeamServiceImpl) Delete ¶ added in v0.3.15
func (impl TeamServiceImpl) Delete(deleteRequest *TeamRequest) error
func (TeamServiceImpl) FetchAllActive ¶ added in v0.2.16
func (impl TeamServiceImpl) FetchAllActive() ([]TeamRequest, error)
func (TeamServiceImpl) FetchForAutocomplete ¶
func (impl TeamServiceImpl) FetchForAutocomplete() ([]TeamRequest, error)
func (TeamServiceImpl) FetchOne ¶
func (impl TeamServiceImpl) FetchOne(teamId int) (*TeamRequest, error)
func (TeamServiceImpl) FindByIds ¶
func (impl TeamServiceImpl) FindByIds(ids []*int) ([]*TeamBean, error)
func (TeamServiceImpl) FindByTeamName ¶ added in v0.3.6
func (impl TeamServiceImpl) FindByTeamName(teamName string) (*TeamRequest, error)
func (TeamServiceImpl) Update ¶
func (impl TeamServiceImpl) Update(request *TeamRequest) (*TeamRequest, error)
Click to show internal directories.
Click to hide internal directories.