Documentation ¶
Index ¶
- type DevService
- type IconService
- func (service *IconService) GetDoneIconCountByDev(dev string) (int, error)
- func (service *IconService) GetDoneIconsByPackByDev(dev, pack string) ([]model.Icon, error)
- func (service *IconService) GetIconByComponentByPackByDev(dev, pack, component string) (*model.Icon, error)
- func (service *IconService) GetIconCountByDev(dev string) (int, error)
- func (service *IconService) GetIconPackIDFromName(dev, pack string) (int, error)
- func (service *IconService) GetIcons() ([]model.Icon, error)
- func (service *IconService) GetIconsByDev(dev string) ([]model.Icon, error)
- func (service *IconService) GetIconsByPackByDev(dev, pack string) ([]model.Icon, error)
- func (service *IconService) GetPendingIconCountByDev(dev string) (int, error)
- func (service *IconService) GetPendingIconsByPackByDev(dev, pack string) ([]model.Icon, error)
- func (service *IconService) SaveIcon(dev string, icon *model.Icon) (int, error)
- func (service *IconService) SaveIcons(dev string, icons []*model.Icon) (int, error)
- func (service *IconService) UpdateIconStatus(dev, pack, component, status string) (string, error)
- type PackService
- func (service *PackService) CreatePack(pack model.Pack) (string, error)
- func (service *PackService) GetPackCountByDev(dev string) (int, error)
- func (service *PackService) GetPacks() ([]model.Pack, error)
- func (service *PackService) GetPacksByDev(dev string) ([]model.Pack, error)
- func (service *PackService) PackExists(dev, pack string) (bool, error)
- type PlanService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevService ¶
type DevService struct {
// contains filtered or unexported fields
}
DevService provides access to services related to users
func NewDevService ¶
func NewDevService(devStore store.DevStore) *DevService
NewDevService creates and returns a new user service instance
func (*DevService) DevExists ¶
func (service *DevService) DevExists(dev string) (bool, error)
DevExists returns whether the given dev exists
func (*DevService) GetDevByUsername ¶
func (service *DevService) GetDevByUsername(dev string) (model.User, error)
GetDevByUsername gets the dev with the matching username
func (*DevService) GetDevCount ¶
func (service *DevService) GetDevCount() (int, error)
GetDevCount gets the number of developers in the database
type IconService ¶
type IconService struct {
// contains filtered or unexported fields
}
IconService provides access to services related to icon requests
func NewIconService ¶
func NewIconService(iconStore store.IconStore) *IconService
NewIconService creates and returns a new icon service instance
func (*IconService) GetDoneIconCountByDev ¶
func (service *IconService) GetDoneIconCountByDev(dev string) (int, error)
GetDoneIconCountByDev retrieves the number of icons in the database
func (*IconService) GetDoneIconsByPackByDev ¶
func (service *IconService) GetDoneIconsByPackByDev(dev, pack string) ([]model.Icon, error)
GetDoneIconsByPackByDev retrieves a list of all the icon requests in the database
func (*IconService) GetIconByComponentByPackByDev ¶
func (service *IconService) GetIconByComponentByPackByDev(dev, pack, component string) (*model.Icon, error)
GetIconByComponentByPackByDev returns the matching icon
func (*IconService) GetIconCountByDev ¶
func (service *IconService) GetIconCountByDev(dev string) (int, error)
GetIconCountByDev retrieves the number of icons in the database
func (*IconService) GetIconPackIDFromName ¶
func (service *IconService) GetIconPackIDFromName(dev, pack string) (int, error)
GetIconPackIDFromName sets the new status of the icon request
func (*IconService) GetIcons ¶
func (service *IconService) GetIcons() ([]model.Icon, error)
GetIcons retrieves a list of all the icon requests in the DB
func (*IconService) GetIconsByDev ¶
func (service *IconService) GetIconsByDev(dev string) ([]model.Icon, error)
GetIconsByDev retrieves a list of all the icon requests belonging to the dev
func (*IconService) GetIconsByPackByDev ¶
func (service *IconService) GetIconsByPackByDev(dev, pack string) ([]model.Icon, error)
GetIconsByPackByDev retrieves a list of all the icon requests in the database
func (*IconService) GetPendingIconCountByDev ¶
func (service *IconService) GetPendingIconCountByDev(dev string) (int, error)
GetPendingIconCountByDev retrieves the number of icons in the database
func (*IconService) GetPendingIconsByPackByDev ¶
func (service *IconService) GetPendingIconsByPackByDev(dev, pack string) ([]model.Icon, error)
GetPendingIconsByPackByDev retrieves a list of all the icon requests in the database
func (*IconService) UpdateIconStatus ¶
func (service *IconService) UpdateIconStatus(dev, pack, component, status string) (string, error)
UpdateIconStatus sets the new status of the icon request
type PackService ¶
type PackService struct {
// contains filtered or unexported fields
}
PackService provides access to services related to icon packs
func NewPackService ¶
func NewPackService(packStore store.PackStore) *PackService
NewPackService creates and returns a new pack service instance
func (*PackService) CreatePack ¶
func (service *PackService) CreatePack(pack model.Pack) (string, error)
CreatePack creates a new icon pack
func (*PackService) GetPackCountByDev ¶
func (service *PackService) GetPackCountByDev(dev string) (int, error)
GetPackCountByDev gets the number of icon packs by the dev
func (*PackService) GetPacks ¶
func (service *PackService) GetPacks() ([]model.Pack, error)
GetPacks returns the list of all packs !!! UNIMPLEMENTED
func (*PackService) GetPacksByDev ¶
func (service *PackService) GetPacksByDev(dev string) ([]model.Pack, error)
GetPacksByDev gets the list of all icon packs by the given dev
func (*PackService) PackExists ¶
func (service *PackService) PackExists(dev, pack string) (bool, error)
PackExists checks whether the given pack exists
type PlanService ¶
type PlanService struct {
// contains filtered or unexported fields
}
PlanService provides access to services related to users
func NewPlanService ¶
func NewPlanService(planStore store.PlanStore) *PlanService
NewPlanService creates and returns a new user service instance
func (*PlanService) CreatePlan ¶
func (service *PlanService) CreatePlan(plan *model.Plan) (string, error)
CreatePlan creates a new user
func (*PlanService) GetPlans ¶
func (service *PlanService) GetPlans() ([]model.Plan, error)
GetPlans gets the list of all plans
func (*PlanService) PlansExists ¶
func (service *PlanService) PlansExists() (bool, error)
PlansExists returns whether the plans table exists
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
UserService provides access to services related to users
func NewUserService ¶
func NewUserService(userStore store.UserStore) *UserService
NewUserService creates and returns a new user service instance
func (*UserService) CreateUser ¶
CreateUser creates a new user