app

package
v0.22.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAppId

func CheckAppId(appId string) error

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

func (ps *AppService) GetListApps(organizationID, projectID string, pageSize, pageNum int) ([]models.App, error)

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

type MockAppService struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL