From 860b8dd052398b4cb68578d654a0a2f90c5d4d86 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Thu, 19 Sep 2024 08:08:05 +0100 Subject: [PATCH] fix_: linter --- cmd/statusd/server/endpoints.go | 180 +++++++++--------- .../server/parse-api/endpoints_template.txt | 12 +- 2 files changed, 96 insertions(+), 96 deletions(-) diff --git a/cmd/statusd/server/endpoints.go b/cmd/statusd/server/endpoints.go index d8565d5d1..30dbc4d81 100644 --- a/cmd/statusd/server/endpoints.go +++ b/cmd/statusd/server/endpoints.go @@ -3,100 +3,100 @@ package server import statusgo "github.com/status-im/status-go/mobile" var EndpointsWithResponse = []func(string) string{ - statusgo.InitializeApplication, - statusgo.ExtractGroupMembershipSignatures, - statusgo.SignGroupMembership, - statusgo.ValidateNodeConfig, - statusgo.CallRPC, - statusgo.CallPrivateRPC, - statusgo.CreateAccountAndLogin, - statusgo.LoginAccount, - statusgo.RestoreAccountAndLogin, - statusgo.InitKeystore, - statusgo.SignMessage, - statusgo.HashTypedData, - statusgo.HashTypedDataV4, - statusgo.Recover, - statusgo.HashTransaction, - statusgo.HashMessage, - statusgo.StartCPUProfile, - statusgo.WriteHeapProfile, - statusgo.AddPeer, - statusgo.SignHash, - statusgo.GenerateAlias, - statusgo.IsAlias, - statusgo.Identicon, - statusgo.EmojiHash, - statusgo.ColorHash, - statusgo.ColorID, - statusgo.ValidateMnemonic, - statusgo.DecompressPublicKey, - statusgo.CompressPublicKey, - statusgo.SerializeLegacyKey, - statusgo.GetPasswordStrength, - statusgo.GetPasswordStrengthScore, - statusgo.GetConnectionStringForBeingBootstrapped, - statusgo.GetConnectionStringForBootstrappingAnotherDevice, - statusgo.GetConnectionStringForExportingKeypairsKeystores, - statusgo.ValidateConnectionString, - statusgo.DecodeParameters, - statusgo.HexToNumber, - statusgo.NumberToHex, - statusgo.Sha3, - statusgo.Utf8ToHex, - statusgo.HexToUtf8, - statusgo.CheckAddressChecksum, - statusgo.IsAddress, - statusgo.ToChecksumAddress, - statusgo.DeserializeAndCompressKey, - statusgo.InitLogging, - statusgo.ToggleCentralizedMetrics, - statusgo.AddCentralizedMetric, + statusgo.InitializeApplication, + statusgo.ExtractGroupMembershipSignatures, + statusgo.SignGroupMembership, + statusgo.ValidateNodeConfig, + statusgo.CallRPC, + statusgo.CallPrivateRPC, + statusgo.CreateAccountAndLogin, + statusgo.LoginAccount, + statusgo.RestoreAccountAndLogin, + statusgo.InitKeystore, + statusgo.SignMessage, + statusgo.HashTypedData, + statusgo.HashTypedDataV4, + statusgo.Recover, + statusgo.HashTransaction, + statusgo.HashMessage, + statusgo.StartCPUProfile, + statusgo.WriteHeapProfile, + statusgo.AddPeer, + statusgo.SignHash, + statusgo.GenerateAlias, + statusgo.IsAlias, + statusgo.Identicon, + statusgo.EmojiHash, + statusgo.ColorHash, + statusgo.ColorID, + statusgo.ValidateMnemonic, + statusgo.DecompressPublicKey, + statusgo.CompressPublicKey, + statusgo.SerializeLegacyKey, + statusgo.GetPasswordStrength, + statusgo.GetPasswordStrengthScore, + statusgo.GetConnectionStringForBeingBootstrapped, + statusgo.GetConnectionStringForBootstrappingAnotherDevice, + statusgo.GetConnectionStringForExportingKeypairsKeystores, + statusgo.ValidateConnectionString, + statusgo.DecodeParameters, + statusgo.HexToNumber, + statusgo.NumberToHex, + statusgo.Sha3, + statusgo.Utf8ToHex, + statusgo.HexToUtf8, + statusgo.CheckAddressChecksum, + statusgo.IsAddress, + statusgo.ToChecksumAddress, + statusgo.DeserializeAndCompressKey, + statusgo.InitLogging, + statusgo.ToggleCentralizedMetrics, + statusgo.AddCentralizedMetric, } var EndpointsNoRequest = []func() string{ - statusgo.GetNodeConfig, - statusgo.ResetChainData, - statusgo.Logout, - statusgo.StopCPUProfiling, - statusgo.StartLocalNotifications, - statusgo.StopLocalNotifications, - statusgo.ExportNodeLogs, - statusgo.ImageServerTLSCert, - statusgo.Fleets, - statusgo.LocalPairingPreflightOutboundCheck, - statusgo.StartSearchForLocalPairingPeers, - statusgo.GetRandomMnemonic, - statusgo.CentralizedMetricsInfo, + statusgo.GetNodeConfig, + statusgo.ResetChainData, + statusgo.Logout, + statusgo.StopCPUProfiling, + statusgo.StartLocalNotifications, + statusgo.StopLocalNotifications, + statusgo.ExportNodeLogs, + statusgo.ImageServerTLSCert, + statusgo.Fleets, + statusgo.LocalPairingPreflightOutboundCheck, + statusgo.StartSearchForLocalPairingPeers, + statusgo.GetRandomMnemonic, + statusgo.CentralizedMetricsInfo, } var EndpointsUnsupported = []string{ - "VerifyAccountPassword", - "VerifyDatabasePassword", - "MigrateKeyStoreDir", - "DeleteMultiaccount", - "DeleteImportedKey", - "SignTypedData", - "SignTypedDataV4", - "SendTransactionWithChainID", - "SendTransaction", - "SendTransactionWithSignature", - "ConnectionChange", - "AppStateChange", - "SetMobileSignalHandler", - "SetSignalEventCallback", - "MultiformatSerializePublicKey", - "MultiformatDeserializePublicKey", - "ExportUnencryptedDatabase", - "ImportUnencryptedDatabase", - "ChangeDatabasePassword", - "ConvertToKeycardAccount", - "ConvertToRegularAccount", - "SwitchFleet", - "GenerateImages", - "InputConnectionStringForBootstrapping", - "InputConnectionStringForBootstrappingAnotherDevice", - "InputConnectionStringForImportingKeypairsKeystores", - "EncodeTransfer", - "EncodeFunctionCall", + "VerifyAccountPassword", + "VerifyDatabasePassword", + "MigrateKeyStoreDir", + "DeleteMultiaccount", + "DeleteImportedKey", + "SignTypedData", + "SignTypedDataV4", + "SendTransactionWithChainID", + "SendTransaction", + "SendTransactionWithSignature", + "ConnectionChange", + "AppStateChange", + "SetMobileSignalHandler", + "SetSignalEventCallback", + "MultiformatSerializePublicKey", + "MultiformatDeserializePublicKey", + "ExportUnencryptedDatabase", + "ImportUnencryptedDatabase", + "ChangeDatabasePassword", + "ConvertToKeycardAccount", + "ConvertToRegularAccount", + "SwitchFleet", + "GenerateImages", + "InputConnectionStringForBootstrapping", + "InputConnectionStringForBootstrappingAnotherDevice", + "InputConnectionStringForImportingKeypairsKeystores", + "EncodeTransfer", + "EncodeFunctionCall", } diff --git a/cmd/statusd/server/parse-api/endpoints_template.txt b/cmd/statusd/server/parse-api/endpoints_template.txt index f223b86c2..99e8c4713 100644 --- a/cmd/statusd/server/parse-api/endpoints_template.txt +++ b/cmd/statusd/server/parse-api/endpoints_template.txt @@ -3,19 +3,19 @@ package server import statusgo "github.com/status-im/status-go/mobile" var EndpointsWithResponse = []func(string) string{ - {{- range .FunctionsWithResp }} - {{ $.PackageName }}.{{ . }}, + {{- range .FunctionsWithResp }} + {{ $.PackageName }}.{{ . }}, {{- end }} } var EndpointsNoRequest = []func() string{ - {{- range .FunctionsNoArgs }} - {{ $.PackageName }}.{{ . }}, + {{- range .FunctionsNoArgs }} + {{ $.PackageName }}.{{ . }}, {{- end }} } var EndpointsUnsupported = []string{ - {{- range .UnsupportedEndpoints }} - "{{ . }}", + {{- range .UnsupportedEndpoints }} + "{{ . }}", {{- end }} }