Documentation
¶
Index ¶
- func CheckAppId(appId string) error
- type AppService
- func (ps *AppService) CreateApp(organizationID, projectId, alternateID, name string) (models.App, error)
- func (ps *AppService) DeleteApp(organizationID, appID string) error
- func (ps *AppService) GetApp(organizationID, appID string) (models.App, error)
- func (ps *AppService) GetListApps(organizationID, projectID string, pageSize, pageNum int) ([]models.App, error)
- type AppServicer
- type MockAppService
- func (m *MockAppService) CreateApp(organizationID, alternateID, name string) (models.App, error)
- func (m *MockAppService) DeleteApp(organizationID, appID string) error
- func (m *MockAppService) GetApp(organizationID, appID string) (models.App, error)
- func (m *MockAppService) GetListApps(organizationID string, pageSize, pageNum int) ([]models.App, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAppId ¶
Types ¶
type AppService ¶
type AppService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *AppService
func (*AppService) CreateApp ¶
func (ps *AppService) CreateApp(organizationID, projectId, alternateID, name string) (models.App, error)
func (*AppService) DeleteApp ¶
func (ps *AppService) DeleteApp(organizationID, appID string) error
func (*AppService) GetApp ¶
func (ps *AppService) GetApp(organizationID, appID string) (models.App, error)
func (*AppService) GetListApps ¶
type AppServicer ¶
type AppServicer interface {
GetListApps(organizationID, projectID string, pageSize, pageNum int) ([]models.App, error)
CreateApp(organizationID, projectID, alternateID, name string) (models.App, error)
GetApp(organizationID, appID string) (models.App, error)
DeleteApp(organizationID, appID string) error
}
type MockAppService ¶
MockAppService is a mock implementation of the AppServicer interface
func (*MockAppService) CreateApp ¶
func (m *MockAppService) CreateApp(organizationID, alternateID, name string) (models.App, error)
CreateApp mocks the CreateApp method
func (*MockAppService) DeleteApp ¶
func (m *MockAppService) DeleteApp(organizationID, appID string) error
DeleteApp mocks the DeleteApp method
func (*MockAppService) GetApp ¶
func (m *MockAppService) GetApp(organizationID, appID string) (models.App, error)
GetApp mocks the GetApp method
func (*MockAppService) GetListApps ¶
func (m *MockAppService) GetListApps(organizationID string, pageSize, pageNum int) ([]models.App, error)
GetListApps mocks the GetListApps method
Click to show internal directories.
Click to hide internal directories.