Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SwishHQ/spread
/ functions
Functions
548 in github.com/SwishHQ/spread
⨍
Functions
548
◇
Types & classes
106
Method
GetByLabelAndEnvironmentId
(ctx context.Context, label string, environmentId primitive.ObjectID)
src/repository/bundle_repository.go:107
Method
GetByName
(ctx context.Context, name string)
src/service/app_service_test.go:29
Method
GetByName
(ctx context.Context, name string)
src/repository/app_repository.go:36
Method
GetBySequenceIdEnvironmentIdAndVersionId
(ctx context.Context, sequenceId int64, environmentId primitive.ObjectID, versionId primitive.ObjectID)
src/service/bundle_service_test.go:181
Method
GetBySequenceIdEnvironmentIdAndVersionId
(ctx context.Context, sequenceId int64, environmentId primitive.ObjectID, versionId primitive.ObjectID)
src/repository/bundle_repository.go:117
Method
GetByUser
(ctx context.Context, username string)
src/service/auth_key_service_test.go:44
Method
GetByUsername
(ctx context.Context, username string)
src/service/user_service_test.go:33
Method
GetByUsername
(ctx context.Context, username string)
src/repository/user_repository.go:40
Method
GetByVersionId
(c *fiber.Ctx)
src/controller/version_controller.go:36
Method
GetByVersionId
(ctx context.Context, versionId primitive.ObjectID)
src/service/version_service.go:79
Method
GetByVersionId
(ctx context.Context, versionId primitive.ObjectID)
src/service/bundle_service_test.go:70
Method
GetEnvironmentByAppIdAndEnvironmentId
(ctx context.Context, appId primitive.ObjectID, id string)
src/service/environment_service.go:94
Method
GetEnvironmentByAppIdAndEnvironmentId
(ctx context.Context, appId primitive.ObjectID, environmentId string)
src/service/bundle_service_test.go:123
Method
GetEnvironmentByAppIdAndName
(ctx context.Context, appId primitive.ObjectID, environmentName string)
src/service/environment_service.go:33
Method
GetEnvironmentByAppIdAndName
(ctx context.Context, appId primitive.ObjectID, name string)
src/service/bundle_service_test.go:99
Method
GetEnvironmentByKey
(ctx context.Context, key string)
src/service/environment_service.go:75
Method
GetEnvironmentByKey
(ctx context.Context, key string)
src/service/bundle_service_test.go:107
Method
GetLatestVersionByEnvironmentId
(ctx context.Context, environmentId primitive.ObjectID)
src/service/version_service_test.go:53
Method
GetLatestVersionByEnvironmentId
(ctx context.Context, environmentId primitive.ObjectID)
src/service/version_service.go:59
Method
GetLatestVersionByEnvironmentId
(ctx context.Context, environmentId primitive.ObjectID)
src/service/bundle_service_test.go:54
Method
GetLatestVersionByEnvironmentId
(ctx context.Context, environmentId primitive.ObjectID)
src/repository/version_repository.go:19
Method
GetLatestVersionByEnvironmentId
(ctx context.Context, environmentId primitive.ObjectID)
src/repository/version_repository.go:75
Method
GetNextSeqByEnvironmentIdAndVersionId
(ctx context.Context, environmentId primitive.ObjectID, versionId primitive.ObjectID)
src/service/bundle_service_test.go:176
Method
GetNextSeqByEnvironmentIdAndVersionId
(ctx context.Context, environmentId primitive.ObjectID, versionId primitive.ObjectID)
src/repository/bundle_repository.go:72
Method
GetUser
(c *fiber.Ctx)
src/controller/user_controller.go:15
Method
GetUser
(ctx *fiber.Ctx)
src/controller/user_controller.go:45
Method
GetUser
(id string)
src/service/user_service.go:82
Method
GetVersionByEnvironmentIdAndAppVersion
(ctx context.Context, environmentId primitive.ObjectID, appVersion string)
src/service/version_service.go:32
Method
GetVersionByEnvironmentIdAndAppVersion
(ctx context.Context, environmentId primitive.ObjectID, appVersion string)
src/service/bundle_service_test.go:38
Method
GetVersionByEnvironmentIdAndVersionId
(ctx context.Context, versionId primitive.ObjectID, environmentId primitive.ObjectID)
src/service/version_service.go:90
Method
GetVersionByEnvironmentIdAndVersionId
(ctx context.Context, versionId primitive.ObjectID, environmentId primitive.ObjectID)
src/service/bundle_service_test.go:46
Function
Header
()
web/src/components/Header.tsx:9
Method
InitUser
(c *fiber.Ctx)
src/controller/user_controller.go:17
Method
InitUser
(ctx *fiber.Ctx)
src/controller/user_controller.go:85
Method
Insert
(ctx context.Context, app *model.App)
src/service/app_service_test.go:21
Method
Insert
(ctx context.Context, environment *model.Environment)
src/service/environment_service_test.go:59
Method
Insert
(ctx context.Context, user *model.User)
src/service/user_service_test.go:25
Method
Insert
(authKey *model.AuthKey)
src/service/auth_key_service_test.go:20
Method
Insert
(ctx context.Context, app *model.App)
src/repository/app_repository.go:27
Method
Insert
(ctx context.Context, environment *model.Environment)
src/repository/environment_repository.go:15
Method
Insert
(ctx context.Context, environment *model.Environment)
src/repository/environment_repository.go:30
Method
Insert
(authKey *model.AuthKey)
src/repository/auth_key.repository.go:14
Method
Insert
(authKey *model.AuthKey)
src/repository/auth_key.repository.go:27
Method
Insert
(ctx context.Context, user *model.User)
src/repository/user_repository.go:14
Method
Insert
(ctx context.Context, user *model.User)
src/repository/user_repository.go:28
Function
InternalServerErrorException
()
exception/exception.go:27
Method
Login
(user *types.LoginUserRequest)
src/service/user_service.go:58
Method
LoginUser
(c *fiber.Ctx)
src/controller/user_controller.go:14
Method
LoginUser
(ctx *fiber.Ctx)
src/controller/user_controller.go:56
Function
LoginView
()
web/src/views/auth/LoginView.tsx:12
Function
MD5
given a string, return the md5 hash example: "hello" -> "5d41402abc4b2a76b9719d911017c592"
utils/common.go:139
Function
NavigationProvider
({ children }: { children: React.ReactNode })
web/src/App.tsx:23
Function
NotFound
()
web/src/views/404.tsx:4
Function
ProtectedRoute
({ children })
web/src/components/auth/ProtectedRoute.tsx:14
Function
Radio
({ checked, onChange }: RadioProps)
web/src/components/primitives/Radio.tsx:8
Method
ReportStatusDeploy
(ctx *fiber.Ctx)
src/controller/client_controller.go:49
Method
ReportStatusDeploy
we retrive bundle using the labelId, during checkupdate we send label as bundleId which the SDK sends back to report status. Use the label to fetch bu
src/service/client_service.go:108
Method
ReportStatusDownload
(ctx *fiber.Ctx)
src/controller/client_controller.go:64
Method
ReportStatusDownload
(reportStatusRequest *types.ReportStatusDownloadRequest)
src/service/client_service.go:176
Function
ResourceNotFoundException
(resourceName string, fieldName string, fieldValue string)
exception/exception.go:9
Method
Rollback
(c *fiber.Ctx)
src/controller/bundle_controller.go:75
Method
Rollback
Rollback is essentially changing the bundle of a version to the previous bundle if any exists
src/service/bundle_service.go:186
Method
Rollback
(rollbackRequest *types.RollbackRequest)
src/service/client_service_test.go:26
Method
SetupStatus
(c *fiber.Ctx)
src/controller/user_controller.go:16
Method
SetupStatus
(ctx *fiber.Ctx)
src/controller/user_controller.go:73
Function
SetupView
({ onUserCreated })
web/src/views/setup/SetupView.tsx:20
Function
SetupWrapper
({ children })
web/src/components/setup/SetupWrapper.tsx:10
Function
TestAppService_CreateApp_AlreadyExists
(t *testing.T)
src/service/app_service_test.go:95
Function
TestAppService_CreateApp_GetByNameError
(t *testing.T)
src/service/app_service_test.go:142
Function
TestAppService_CreateApp_InsertError
(t *testing.T)
src/service/app_service_test.go:164
Function
TestAppService_CreateApp_InvalidOS
(t *testing.T)
src/service/app_service_test.go:123
Function
TestAppService_CreateApp_Success
(t *testing.T)
src/service/app_service_test.go:61
Function
TestAppService_GetAppById_Error
(t *testing.T)
src/service/app_service_test.go:307
Function
TestAppService_GetAppById_InvalidID
(t *testing.T)
src/service/app_service_test.go:267
Function
TestAppService_GetAppById_NotFound
(t *testing.T)
src/service/app_service_test.go:285
Function
TestAppService_GetAppById_Success
(t *testing.T)
src/service/app_service_test.go:238
Function
TestAppService_GetAppByName_Error
(t *testing.T)
src/service/app_service_test.go:217
Function
TestAppService_GetAppByName_Success
(t *testing.T)
src/service/app_service_test.go:189
Function
TestAppService_GetApps_Error
(t *testing.T)
src/service/app_service_test.go:364
Function
TestAppService_GetApps_Success
(t *testing.T)
src/service/app_service_test.go:329
Function
TestAuthKeyService_CreateAuthKey_GeneratesUniqueKeys
(t *testing.T)
src/service/auth_key_service_test.go:270
Function
TestAuthKeyService_CreateAuthKey_InsertError
(t *testing.T)
src/service/auth_key_service_test.go:97
Function
TestAuthKeyService_CreateAuthKey_Success
(t *testing.T)
src/service/auth_key_service_test.go:60
Function
TestAuthKeyService_GetAllAuthKeys_EmptyList
(t *testing.T)
src/service/auth_key_service_test.go:230
Function
TestAuthKeyService_GetAllAuthKeys_RepositoryError
(t *testing.T)
src/service/auth_key_service_test.go:250
Function
TestAuthKeyService_GetAllAuthKeys_Success
(t *testing.T)
src/service/auth_key_service_test.go:188
Function
TestAuthKeyService_GetByAuthKey_NotFound
(t *testing.T)
src/service/auth_key_service_test.go:149
Function
TestAuthKeyService_GetByAuthKey_RepositoryError
(t *testing.T)
src/service/auth_key_service_test.go:168
Function
TestAuthKeyService_GetByAuthKey_Success
(t *testing.T)
src/service/auth_key_service_test.go:118
Function
TestBundleService_AddActive_Error
(t *testing.T)
src/service/bundle_service_test.go:567
Function
TestBundleService_AddActive_Success
(t *testing.T)
src/service/bundle_service_test.go:548
Function
TestBundleService_AddFailed_Success
(t *testing.T)
src/service/bundle_service_test.go:587
Function
TestBundleService_AddInstalled_Success
(t *testing.T)
src/service/bundle_service_test.go:606
Function
TestBundleService_CreateNewBundle_AppNotFound
(t *testing.T)
src/service/bundle_service_test.go:918
Function
TestBundleService_CreateNewBundle_DuplicateHash
(t *testing.T)
src/service/bundle_service_test.go:994
Function
TestBundleService_CreateNewBundle_EnvironmentNotFound
(t *testing.T)
src/service/bundle_service_test.go:951
Function
TestBundleService_CreateNewBundle_ExistingVersion_Success
(t *testing.T)
src/service/bundle_service_test.go:819
Function
TestBundleService_CreateNewBundle_NewVersion_Success
(t *testing.T)
src/service/bundle_service_test.go:725
Function
TestBundleService_DecrementActive_Success
(t *testing.T)
src/service/bundle_service_test.go:625
Function
TestBundleService_GetBundleByHashAndVersionId_Error
(t *testing.T)
src/service/bundle_service_test.go:700
← previous
next →
301–400 of 548, ranked by callers