diff --git a/cmd/identity/identity.go b/cmd/identity/identity.go index e954c5fc6..54ad580a6 100644 --- a/cmd/identity/identity.go +++ b/cmd/identity/identity.go @@ -15,7 +15,7 @@ import ( ) var ( - // ErrSetup is used when an error occurs while setting up + // ErrSetup is used when an error occurs while setting up. ErrSetup = errs.Class("setup error") idCmd = &cobra.Command{ diff --git a/cmd/identity/main.go b/cmd/identity/main.go index 7637bc094..e955e3111 100644 --- a/cmd/identity/main.go +++ b/cmd/identity/main.go @@ -55,7 +55,6 @@ var ( Annotations: map[string]string{"type": "setup"}, } - //nolint config struct { Difficulty uint64 `default:"36" help:"minimum difficulty for identity generation"` Concurrency uint `default:"4" help:"number of concurrent workers for certificate authority generation"` diff --git a/cmd/inspector/main.go b/cmd/inspector/main.go index 0f4d37949..25d8374c6 100644 --- a/cmd/inspector/main.go +++ b/cmd/inspector/main.go @@ -28,30 +28,30 @@ import ( ) var ( - // Addr is the address of peer from command flags + // Addr is the address of peer from command flags. Addr = flag.String("address", "127.0.0.1:7778", "address of peer to inspect") - // IdentityPath is the path to the identity the inspector should use for network communication + // IdentityPath is the path to the identity the inspector should use for network communication. IdentityPath = flag.String("identity-path", "", "path to the identity certificate for use on the network") - // CSVPath is the csv path where command output is written + // CSVPath is the csv path where command output is written. CSVPath string - // ErrInspectorDial throws when there are errors dialing the inspector server + // ErrInspectorDial throws when there are errors dialing the inspector server. ErrInspectorDial = errs.Class("error dialing inspector server:") - // ErrRequest is for request errors after dialing + // ErrRequest is for request errors after dialing. ErrRequest = errs.Class("error processing request:") - // ErrIdentity is for errors during identity creation for this CLI + // ErrIdentity is for errors during identity creation for this CLI. ErrIdentity = errs.Class("error creating identity:") - // ErrArgs throws when there are errors with CLI args + // ErrArgs throws when there are errors with CLI args. ErrArgs = errs.Class("error with CLI args:") irreparableLimit int32 - // Commander CLI + // Commander CLI. rootCmd = &cobra.Command{ Use: "inspector", Short: "CLI for interacting with Storj network", diff --git a/cmd/storj-sim/network.go b/cmd/storj-sim/network.go index b990bdd7f..5ef59ee6d 100644 --- a/cmd/storj-sim/network.go +++ b/cmd/storj-sim/network.go @@ -48,20 +48,20 @@ const ( // The following values of peer class and endpoints are used // to create a port with a consistent format for storj-sim services. - // Peer class + // Peer classes. satellitePeer = 0 gatewayPeer = 1 versioncontrolPeer = 2 storagenodePeer = 3 - // Endpoint + // Endpoints. publicRPC = 0 privateRPC = 1 publicHTTP = 2 privateHTTP = 3 debugHTTP = 9 - // satellite specific constants + // Satellite specific constants. redisPort = 4 adminHTTP = 5 debugAdminHTTP = 6 diff --git a/cmd/uplink/cmd/root.go b/cmd/uplink/cmd/root.go index 9a6b4b50a..69cfca4e6 100644 --- a/cmd/uplink/cmd/root.go +++ b/cmd/uplink/cmd/root.go @@ -46,7 +46,7 @@ var ( defaults = cfgstruct.DefaultsFlag(RootCmd) - // Error is the class of errors returned by this package + // Error is the class of errors returned by this package. Error = errs.Class("uplink") // ErrAccessFlag is used where the `--access` flag is registered but not supported. ErrAccessFlag = Error.New("--access flag not supported with `setup` and `import` subcommands") diff --git a/pkg/revocation/db.go b/pkg/revocation/db.go index 5d1720791..f23ce5120 100644 --- a/pkg/revocation/db.go +++ b/pkg/revocation/db.go @@ -20,7 +20,7 @@ import ( var ( mon = monkit.Package() - // Error is a pkg/revocation error + // Error is a pkg/revocation error. Error = errs.Class("revocation error") ) diff --git a/pkg/server/common.go b/pkg/server/common.go index 4ba12c92d..433791ae4 100644 --- a/pkg/server/common.go +++ b/pkg/server/common.go @@ -11,6 +11,6 @@ import ( var ( mon = monkit.Package() - // Error is a pkg/server error + // Error is a pkg/server error. Error = errs.Class("server error") ) diff --git a/private/dbutil/dbimplementation.go b/private/dbutil/dbimplementation.go index dd2764d82..e136a93e6 100644 --- a/private/dbutil/dbimplementation.go +++ b/private/dbutil/dbimplementation.go @@ -7,17 +7,17 @@ package dbutil type Implementation int const ( - // Unknown is an unknown db type + // Unknown is an unknown db type. Unknown Implementation = iota - // Postgres is a Postgresdb type + // Postgres is a Postgresdb type. Postgres - // Cockroach is a Cockroachdb type + // Cockroach is a Cockroachdb type. Cockroach - // Bolt is a Bolt kv store + // Bolt is a Bolt kv store. Bolt - // Redis is a Redis kv store + // Redis is a Redis kv store. Redis - // SQLite3 is a sqlite3 database + // SQLite3 is a sqlite3 database. SQLite3 ) diff --git a/private/dbutil/sqliteutil/migrator.go b/private/dbutil/sqliteutil/migrator.go index 777156f51..4f23875f4 100644 --- a/private/dbutil/sqliteutil/migrator.go +++ b/private/dbutil/sqliteutil/migrator.go @@ -16,10 +16,10 @@ import ( ) var ( - // ErrMigrateTables is error class for MigrateTables + // ErrMigrateTables is error class for MigrateTables. ErrMigrateTables = errs.Class("migrate tables") - // ErrKeepTables is error class for MigrateTables + // ErrKeepTables is error class for MigrateTables. ErrKeepTables = errs.Class("keep tables") ) diff --git a/private/dbutil/sqliteutil/query.go b/private/dbutil/sqliteutil/query.go index d5f4df375..31dbdf2a7 100644 --- a/private/dbutil/sqliteutil/query.go +++ b/private/dbutil/sqliteutil/query.go @@ -230,12 +230,12 @@ func discoverIndexes(ctx context.Context, db dbschema.Queryer, schema *dbschema. } var ( - // matches UNIQUE (a,b) + // matches "UNIQUE (a,b)". rxUnique = regexp.MustCompile(`UNIQUE\s*\((.*?)\)`) - // matches ON table(expr) + // matches "ON table(expr)". rxIndexExpr = regexp.MustCompile(`ON\s*[^(]*\((.*)\)`) - // matches WHERE (partial expression) + // matches "WHERE (partial expression)". rxIndexPartial = regexp.MustCompile(`WHERE (.*)$`) ) diff --git a/private/migrate/versions.go b/private/migrate/versions.go index fc519e90e..55f5bc444 100644 --- a/private/migrate/versions.go +++ b/private/migrate/versions.go @@ -20,11 +20,11 @@ import ( ) var ( - // ErrValidateVersionQuery is when there is an error querying version table + // ErrValidateVersionQuery is when there is an error querying version table. ErrValidateVersionQuery = errs.Class("validate db version query error") - // ErrValidateVersionMismatch is when the migration version does not match the current database version + // ErrValidateVersionMismatch is when the migration version does not match the current database version. ErrValidateVersionMismatch = errs.Class("validate db version mismatch error") - // ErrValidateMinVersion is when the migration version does not match the current database version + // ErrValidateMinVersion is when the migration version does not match the current database version. ErrValidateMinVersion = errs.Class("validate minimum version error") ) diff --git a/satellite/accounting/common.go b/satellite/accounting/common.go index 34422ca86..650686756 100644 --- a/satellite/accounting/common.go +++ b/satellite/accounting/common.go @@ -11,11 +11,11 @@ import ( // Constants for accounting_raw, accounting_rollup, and accounting_timestamps. const ( - // LastAtRestTally represents the accounting timestamp for the at-rest data calculation + // LastAtRestTally represents the accounting timestamp for the at-rest data calculation. LastAtRestTally = "LastAtRestTally" - // LastBandwidthTally represents the accounting timestamp for the bandwidth allocation query + // LastBandwidthTally represents the accounting timestamp for the bandwidth allocation query. LastBandwidthTally = "LastBandwidthTally" - // LastRollup represents the accounting timestamp for rollup calculations + // LastRollup represents the accounting timestamp for rollup calculations. LastRollup = "LastRollup" ) diff --git a/satellite/accounting/live/cache.go b/satellite/accounting/live/cache.go index 04c8c004a..ed908ea25 100644 --- a/satellite/accounting/live/cache.go +++ b/satellite/accounting/live/cache.go @@ -15,7 +15,7 @@ import ( ) var ( - // Error is the default error class for live-accounting + // Error is the default error class for live-accounting. Error = errs.Class("live-accounting") mon = monkit.Package() ) diff --git a/satellite/accounting/projectusage.go b/satellite/accounting/projectusage.go index 768bde2e3..ab13cb720 100644 --- a/satellite/accounting/projectusage.go +++ b/satellite/accounting/projectusage.go @@ -19,7 +19,7 @@ import ( var mon = monkit.Package() var ( - // ErrProjectUsage general error for project usage + // ErrProjectUsage general error for project usage. ErrProjectUsage = errs.Class("project usage error") ) diff --git a/satellite/accounting/reportedrollup/chore.go b/satellite/accounting/reportedrollup/chore.go index be350bdee..2ef1f1271 100644 --- a/satellite/accounting/reportedrollup/chore.go +++ b/satellite/accounting/reportedrollup/chore.go @@ -21,7 +21,7 @@ import ( var ( mon = monkit.Package() - // Error is the error class for this package + // Error is the error class for this package. Error = errs.Class("reportedrollup") ) diff --git a/satellite/audit/containment.go b/satellite/audit/containment.go index d54b6f339..4ccc9b44b 100644 --- a/satellite/audit/containment.go +++ b/satellite/audit/containment.go @@ -13,13 +13,13 @@ import ( ) var ( - // ContainError is the containment errs class + // ContainError is the containment errs class. ContainError = errs.Class("containment error") - // ErrContainedNotFound is the errs class for when a pending audit isn't found + // ErrContainedNotFound is the errs class for when a pending audit isn't found. ErrContainedNotFound = errs.Class("pending audit not found") - // ErrContainDelete is the errs class for when a pending audit can't be deleted + // ErrContainDelete is the errs class for when a pending audit can't be deleted. ErrContainDelete = errs.Class("unable to delete pending audit") ) diff --git a/satellite/audit/verifier.go b/satellite/audit/verifier.go index ada9e30f5..88ceaf270 100644 --- a/satellite/audit/verifier.go +++ b/satellite/audit/verifier.go @@ -34,13 +34,13 @@ import ( var ( mon = monkit.Package() - // ErrNotEnoughShares is the errs class for when not enough shares are available to do an audit + // ErrNotEnoughShares is the errs class for when not enough shares are available to do an audit. ErrNotEnoughShares = errs.Class("not enough shares for successful audit") - // ErrSegmentDeleted is the errs class when the audited segment was deleted during the audit + // ErrSegmentDeleted is the errs class when the audited segment was deleted during the audit. ErrSegmentDeleted = errs.Class("segment deleted during audit") // ErrSegmentExpired is the errs class used when a segment to audit has already expired. ErrSegmentExpired = errs.Class("segment expired before audit") - // ErrSegmentModified is the errs class used when a segment has been changed in any way + // ErrSegmentModified is the errs class used when a segment has been changed in any way. ErrSegmentModified = errs.Class("segment has been modified") ) diff --git a/satellite/compensation/common.go b/satellite/compensation/common.go index d47a7c873..f92bc9151 100644 --- a/satellite/compensation/common.go +++ b/satellite/compensation/common.go @@ -6,6 +6,6 @@ package compensation import "github.com/zeebo/errs" var ( - // Error wraps common errors from this package + // Error wraps common errors from this package. Error = errs.Class("compensation") ) diff --git a/satellite/console/apikeys.go b/satellite/console/apikeys.go index 8af342ee8..7d1d0c6a6 100644 --- a/satellite/console/apikeys.go +++ b/satellite/console/apikeys.go @@ -68,8 +68,8 @@ type APIKeyPage struct { type APIKeyOrder uint8 const ( - // KeyName indicates that we should order by key name + // KeyName indicates that we should order by key name. KeyName APIKeyOrder = 1 - // CreationDate indicates that we should order by creation date + // CreationDate indicates that we should order by creation date. CreationDate APIKeyOrder = 2 ) diff --git a/satellite/console/consoleweb/consoleql/apikey.go b/satellite/console/consoleweb/consoleql/apikey.go index 3b5cb19b0..a1c9ef5c7 100644 --- a/satellite/console/consoleweb/consoleql/apikey.go +++ b/satellite/console/consoleweb/consoleql/apikey.go @@ -10,12 +10,12 @@ import ( ) const ( - // APIKeyInfoType is graphql type name for api key + // APIKeyInfoType is graphql type name for api key. APIKeyInfoType = "keyInfo" // CreateAPIKeyType is graphql type name for createAPIKey struct - // which incapsulates the actual key and it's info + // which incapsulates the actual key and it's info. CreateAPIKeyType = "graphqlCreateAPIKey" - // FieldKey is field name for the actual key in createAPIKey + // FieldKey is field name for the actual key in createAPIKey. FieldKey = "key" ) diff --git a/satellite/console/consoleweb/consoleql/mail.go b/satellite/console/consoleweb/consoleql/mail.go index 686b8acd5..c53195414 100644 --- a/satellite/console/consoleweb/consoleql/mail.go +++ b/satellite/console/consoleweb/consoleql/mail.go @@ -4,19 +4,19 @@ package consoleql const ( - // ActivationPath is key for path which handles account activation + // ActivationPath is key for path which handles account activation. ActivationPath = "activationPath" - // PasswordRecoveryPath is key for path which handles password recovery + // PasswordRecoveryPath is key for path which handles password recovery. PasswordRecoveryPath = "passwordRecoveryPath" - // CancelPasswordRecoveryPath is key for path which handles let us know sequence + // CancelPasswordRecoveryPath is key for path which handles let us know sequence. CancelPasswordRecoveryPath = "cancelPasswordRecoveryPath" - // SignInPath is key for sign in server route + // SignInPath is key for sign in server route. SignInPath = "signInPath" - // LetUsKnowURL is key to store let us know URL + // LetUsKnowURL is key to store let us know URL. LetUsKnowURL = "letUsKnowURL" - // ContactInfoURL is a key to store contact info URL + // ContactInfoURL is a key to store contact info URL. ContactInfoURL = "contactInfoURL" - // TermsAndConditionsURL is a key to store terms and conditions URL + // TermsAndConditionsURL is a key to store terms and conditions URL. TermsAndConditionsURL = "termsAndConditionsURL" ) diff --git a/satellite/console/consoleweb/consoleql/mutation.go b/satellite/console/consoleweb/consoleql/mutation.go index 08038b394..29a9f0146 100644 --- a/satellite/console/consoleweb/consoleql/mutation.go +++ b/satellite/console/consoleweb/consoleql/mutation.go @@ -14,42 +14,42 @@ import ( ) const ( - // Mutation is graphql request that modifies data + // Mutation is graphql request that modifies data. Mutation = "mutation" - // CreateProjectMutation is a mutation name for project creation + // CreateProjectMutation is a mutation name for project creation. CreateProjectMutation = "createProject" - // DeleteProjectMutation is a mutation name for project deletion + // DeleteProjectMutation is a mutation name for project deletion. DeleteProjectMutation = "deleteProject" - // UpdateProjectDescriptionMutation is a mutation name for project updating + // UpdateProjectDescriptionMutation is a mutation name for project updating. UpdateProjectDescriptionMutation = "updateProjectDescription" - // AddProjectMembersMutation is a mutation name for adding new project members + // AddProjectMembersMutation is a mutation name for adding new project members. AddProjectMembersMutation = "addProjectMembers" - // DeleteProjectMembersMutation is a mutation name for deleting project members + // DeleteProjectMembersMutation is a mutation name for deleting project members. DeleteProjectMembersMutation = "deleteProjectMembers" - // CreateAPIKeyMutation is a mutation name for api key creation + // CreateAPIKeyMutation is a mutation name for api key creation. CreateAPIKeyMutation = "createAPIKey" - // DeleteAPIKeysMutation is a mutation name for api key deleting + // DeleteAPIKeysMutation is a mutation name for api key deleting. DeleteAPIKeysMutation = "deleteAPIKeys" - // AddPaymentMethodMutation is mutation name for adding new payment method + // AddPaymentMethodMutation is mutation name for adding new payment method. AddPaymentMethodMutation = "addPaymentMethod" - // DeletePaymentMethodMutation is mutation name for deleting payment method + // DeletePaymentMethodMutation is mutation name for deleting payment method. DeletePaymentMethodMutation = "deletePaymentMethod" - // SetDefaultPaymentMethodMutation is mutation name setting payment method as default payment method + // SetDefaultPaymentMethodMutation is mutation name setting payment method as default payment method. SetDefaultPaymentMethodMutation = "setDefaultPaymentMethod" - // InputArg is argument name for all input types + // InputArg is argument name for all input types. InputArg = "input" - // FieldProjectID is field name for projectID + // FieldProjectID is field name for projectID. FieldProjectID = "projectID" - // FieldNewPassword is a field name for new password + // FieldNewPassword is a field name for new password. FieldNewPassword = "newPassword" - // Secret is a field name for registration token for user creation during Vanguard release + // Secret is a field name for registration token for user creation during Vanguard release. Secret = "secret" - // ReferrerUserID is a field name for passing referrer's user id + // ReferrerUserID is a field name for passing referrer's user id. ReferrerUserID = "referrerUserId" ) diff --git a/satellite/console/consoleweb/consoleql/project.go b/satellite/console/consoleweb/consoleql/project.go index a2b288078..908b492ba 100644 --- a/satellite/console/consoleweb/consoleql/project.go +++ b/satellite/console/consoleweb/consoleql/project.go @@ -13,74 +13,74 @@ import ( ) const ( - // ProjectType is a graphql type name for project + // ProjectType is a graphql type name for project. ProjectType = "project" - // ProjectInputType is a graphql type name for project input + // ProjectInputType is a graphql type name for project input. ProjectInputType = "projectInput" - // ProjectUsageType is a graphql type name for project usage + // ProjectUsageType is a graphql type name for project usage. ProjectUsageType = "projectUsage" // BucketUsageCursorInputType is a graphql input - // type name for bucket usage cursor + // type name for bucket usage cursor. BucketUsageCursorInputType = "bucketUsageCursor" - // BucketUsageType is a graphql type name for bucket usage + // BucketUsageType is a graphql type name for bucket usage. BucketUsageType = "bucketUsage" - // BucketUsagePageType is a field name for bucket usage page + // BucketUsagePageType is a field name for bucket usage page. BucketUsagePageType = "bucketUsagePage" - // ProjectMembersPageType is a field name for project members page + // ProjectMembersPageType is a field name for project members page. ProjectMembersPageType = "projectMembersPage" - // ProjectMembersCursorInputType is a graphql type name for project members + // ProjectMembersCursorInputType is a graphql type name for project members. ProjectMembersCursorInputType = "projectMembersCursor" - // APIKeysPageType is a field name for api keys page + // APIKeysPageType is a field name for api keys page. APIKeysPageType = "apiKeysPage" - // APIKeysCursorInputType is a graphql type name for api keys + // APIKeysCursorInputType is a graphql type name for api keys. APIKeysCursorInputType = "apiKeysCursor" - // FieldOwnerID is a field name for "ownerId" + // FieldOwnerID is a field name for "ownerId". FieldOwnerID = "ownerId" - // FieldName is a field name for "name" + // FieldName is a field name for "name". FieldName = "name" - // FieldBucketName is a field name for "bucket name" + // FieldBucketName is a field name for "bucket name". FieldBucketName = "bucketName" - // FieldDescription is a field name for description + // FieldDescription is a field name for description. FieldDescription = "description" - // FieldMembers is field name for members + // FieldMembers is field name for members. FieldMembers = "members" - // FieldAPIKeys is a field name for api keys + // FieldAPIKeys is a field name for api keys. FieldAPIKeys = "apiKeys" - // FieldUsage is a field name for usage rollup + // FieldUsage is a field name for usage rollup. FieldUsage = "usage" - // FieldBucketUsages is a field name for bucket usages + // FieldBucketUsages is a field name for bucket usages. FieldBucketUsages = "bucketUsages" - // FieldStorage is a field name for storage total + // FieldStorage is a field name for storage total. FieldStorage = "storage" - // FieldEgress is a field name for egress total + // FieldEgress is a field name for egress total. FieldEgress = "egress" - // FieldObjectCount is a field name for objects count + // FieldObjectCount is a field name for objects count. FieldObjectCount = "objectCount" - // FieldPageCount is a field name for total page count + // FieldPageCount is a field name for total page count. FieldPageCount = "pageCount" - // FieldCurrentPage is a field name for current page number + // FieldCurrentPage is a field name for current page number. FieldCurrentPage = "currentPage" - // FieldTotalCount is a field name for bucket usage count total + // FieldTotalCount is a field name for bucket usage count total. FieldTotalCount = "totalCount" - // FieldProjectMembers is a field name for project members + // FieldProjectMembers is a field name for project members. FieldProjectMembers = "projectMembers" - // CursorArg is an argument name for cursor + // CursorArg is an argument name for cursor. CursorArg = "cursor" - // PageArg ia an argument name for page number + // PageArg ia an argument name for page number. PageArg = "page" - // LimitArg is argument name for limit + // LimitArg is argument name for limit. LimitArg = "limit" - // OffsetArg is argument name for offset + // OffsetArg is argument name for offset. OffsetArg = "offset" - // SearchArg is argument name for search + // SearchArg is argument name for search. SearchArg = "search" - // OrderArg is argument name for order + // OrderArg is argument name for order. OrderArg = "order" - // OrderDirectionArg is argument name for order direction + // OrderDirectionArg is argument name for order direction. OrderDirectionArg = "orderDirection" - // SinceArg marks start of the period + // SinceArg marks start of the period. SinceArg = "since" - // BeforeArg marks end of the period + // BeforeArg marks end of the period. BeforeArg = "before" ) diff --git a/satellite/console/consoleweb/consoleql/projectmember.go b/satellite/console/consoleweb/consoleql/projectmember.go index ed6bdb733..e3573f4d9 100644 --- a/satellite/console/consoleweb/consoleql/projectmember.go +++ b/satellite/console/consoleweb/consoleql/projectmember.go @@ -12,9 +12,9 @@ import ( ) const ( - // ProjectMemberType is a graphql type name for project member + // ProjectMemberType is a graphql type name for project member. ProjectMemberType = "projectMember" - // FieldJoinedAt is a field name for joined at timestamp + // FieldJoinedAt is a field name for joined at timestamp. FieldJoinedAt = "joinedAt" ) diff --git a/satellite/console/consoleweb/consoleql/query.go b/satellite/console/consoleweb/consoleql/query.go index 24d3cea30..24c698805 100644 --- a/satellite/console/consoleweb/consoleql/query.go +++ b/satellite/console/consoleweb/consoleql/query.go @@ -13,15 +13,15 @@ import ( ) const ( - // Query is immutable graphql request + // Query is immutable graphql request. Query = "query" - // ProjectQuery is a query name for project + // ProjectQuery is a query name for project. ProjectQuery = "project" - // MyProjectsQuery is a query name for projects related to account + // MyProjectsQuery is a query name for projects related to account. MyProjectsQuery = "myProjects" - // ActiveRewardQuery is a query name for current active reward offer + // ActiveRewardQuery is a query name for current active reward offer. ActiveRewardQuery = "activeReward" - // CreditUsageQuery is a query name for credit usage related to an user + // CreditUsageQuery is a query name for credit usage related to an user. CreditUsageQuery = "creditUsage" ) diff --git a/satellite/console/consoleweb/consoleql/reward.go b/satellite/console/consoleweb/consoleql/reward.go index 41fd2d243..cdf891701 100644 --- a/satellite/console/consoleweb/consoleql/reward.go +++ b/satellite/console/consoleweb/consoleql/reward.go @@ -8,23 +8,23 @@ import ( ) const ( - // RewardType is a graphql type for reward + // RewardType is a graphql type for reward. RewardType = "reward" - // FieldAwardCreditInCent is a field name for award credit amount for referrers + // FieldAwardCreditInCent is a field name for award credit amount for referrers. FieldAwardCreditInCent = "awardCreditInCent" - // FieldInviteeCreditInCents is a field name for credit amount rewarded to invitees + // FieldInviteeCreditInCents is a field name for credit amount rewarded to invitees. FieldInviteeCreditInCents = "inviteeCreditInCents" - // FieldRedeemableCap is a field name for the total redeemable amount of the reward offer + // FieldRedeemableCap is a field name for the total redeemable amount of the reward offer. FieldRedeemableCap = "redeemableCap" - // FieldAwardCreditDurationDays is a field name for the valid time frame of current award credit + // FieldAwardCreditDurationDays is a field name for the valid time frame of current award credit. FieldAwardCreditDurationDays = "awardCreditDurationDays" - // FieldInviteeCreditDurationDays is a field name for the valid time frame of current invitee credit + // FieldInviteeCreditDurationDays is a field name for the valid time frame of current invitee credit. FieldInviteeCreditDurationDays = "inviteeCreditDurationDays" - // FieldExpiresAt is a field name for the expiration time of a reward offer + // FieldExpiresAt is a field name for the expiration time of a reward offer. FieldExpiresAt = "expiresAt" - // FieldType is a field name for the type of reward offers + // FieldType is a field name for the type of reward offers. FieldType = "type" - // FieldStatus is a field name for the status of reward offers + // FieldStatus is a field name for the status of reward offers. FieldStatus = "status" ) diff --git a/satellite/console/consoleweb/consoleql/user.go b/satellite/console/consoleweb/consoleql/user.go index b0683385b..0ac76b1bb 100644 --- a/satellite/console/consoleweb/consoleql/user.go +++ b/satellite/console/consoleweb/consoleql/user.go @@ -8,23 +8,23 @@ import ( ) const ( - // UserType is a graphql type for user + // UserType is a graphql type for user. UserType = "user" - // UserInputType is a graphql type for user input + // UserInputType is a graphql type for user input. UserInputType = "userInput" - // FieldID is a field name for id + // FieldID is a field name for id. FieldID = "id" - // FieldEmail is a field name for email + // FieldEmail is a field name for email. FieldEmail = "email" - // FieldPassword is a field name for password + // FieldPassword is a field name for password. FieldPassword = "password" - // FieldFullName is a field name for "first name" + // FieldFullName is a field name for "first name". FieldFullName = "fullName" - // FieldShortName is a field name for "last name" + // FieldShortName is a field name for "last name". FieldShortName = "shortName" - // FieldCreatedAt is a field name for created at timestamp + // FieldCreatedAt is a field name for created at timestamp. FieldCreatedAt = "createdAt" - // FieldPartnerID is a field name for partnerID + // FieldPartnerID is a field name for partnerID. FieldPartnerID = "partnerId" ) diff --git a/satellite/console/consoleweb/consoleql/usercredit.go b/satellite/console/consoleweb/consoleql/usercredit.go index e51b68dac..33bdb67a2 100644 --- a/satellite/console/consoleweb/consoleql/usercredit.go +++ b/satellite/console/consoleweb/consoleql/usercredit.go @@ -8,13 +8,13 @@ import ( ) const ( - // CreditUsageType is a graphql type for user credit + // CreditUsageType is a graphql type for user credit. CreditUsageType = "creditUsage" - // FieldAvailableCredit is a field name for available credit + // FieldAvailableCredit is a field name for available credit. FieldAvailableCredit = "availableCredit" - // FieldUsedCredit is a field name for used credit + // FieldUsedCredit is a field name for used credit. FieldUsedCredit = "usedCredit" - // FieldReferred is a field name for total referred number + // FieldReferred is a field name for total referred number. FieldReferred = "referred" ) diff --git a/satellite/console/consoleweb/server.go b/satellite/console/consoleweb/server.go index 26f6c1686..6b3e7fe33 100644 --- a/satellite/console/consoleweb/server.go +++ b/satellite/console/consoleweb/server.go @@ -50,7 +50,7 @@ const ( ) var ( - // Error is satellite console error type + // Error is satellite console error type. Error = errs.Class("satellite console error") mon = monkit.Package() diff --git a/satellite/console/projectmembers.go b/satellite/console/projectmembers.go index 707889ff2..24b2bd540 100644 --- a/satellite/console/projectmembers.go +++ b/satellite/console/projectmembers.go @@ -62,10 +62,10 @@ type ProjectMembersPage struct { type ProjectMemberOrder int8 const ( - // Name indicates that we should order by full name + // Name indicates that we should order by full name. Name ProjectMemberOrder = 1 - // Email indicates that we should order by email + // Email indicates that we should order by email. Email ProjectMemberOrder = 2 - // Created indicates that we should order by created date + // Created indicates that we should order by created date. Created ProjectMemberOrder = 3 ) diff --git a/satellite/console/usercredits.go b/satellite/console/usercredits.go index 3e563755e..da9d3ba56 100644 --- a/satellite/console/usercredits.go +++ b/satellite/console/usercredits.go @@ -31,9 +31,9 @@ type UserCredits interface { type CreditType string const ( - // Invitee is a type of credits earned by invitee + // Invitee is a type of credits earned by invitee. Invitee CreditType = "invitee" - // Referrer is a type of credits earned by referrer + // Referrer is a type of credits earned by referrer. Referrer CreditType = "referrer" ) diff --git a/satellite/console/users.go b/satellite/console/users.go index 1fb9bf7a4..8e3259496 100644 --- a/satellite/console/users.go +++ b/satellite/console/users.go @@ -81,11 +81,11 @@ func (user *CreateUser) IsValid() error { type UserStatus int const ( - // Inactive is a user status that he receives after registration + // Inactive is a user status that he receives after registration. Inactive UserStatus = 0 - // Active is a user status that he receives after account activation + // Active is a user status that he receives after account activation. Active UserStatus = 1 - // Deleted is a user status that he receives after deleting account + // Deleted is a user status that he receives after deleting account. Deleted UserStatus = 2 ) diff --git a/satellite/gc/service.go b/satellite/gc/service.go index f0d47563d..da4208c64 100644 --- a/satellite/gc/service.go +++ b/satellite/gc/service.go @@ -22,7 +22,7 @@ import ( ) var ( - // Error defines the gc service errors class + // Error defines the gc service errors class. Error = errs.Class("gc service error") mon = monkit.Package() ) diff --git a/satellite/gracefulexit/common.go b/satellite/gracefulexit/common.go index 86d2c6e12..7fdada092 100644 --- a/satellite/gracefulexit/common.go +++ b/satellite/gracefulexit/common.go @@ -14,7 +14,7 @@ var ( // Error is the default error class for graceful exit package. Error = errs.Class("gracefulexit") - // ErrNodeNotFound is returned if a graceful exit entry for a node does not exist in database + // ErrNodeNotFound is returned if a graceful exit entry for a node does not exist in database. ErrNodeNotFound = errs.Class("graceful exit node not found") // ErrAboveOptimalThreshold is returned if a graceful exit entry for a node has more pieces than required. diff --git a/satellite/inspector/inspector.go b/satellite/inspector/inspector.go index 6dab1f2bd..95ef734c8 100644 --- a/satellite/inspector/inspector.go +++ b/satellite/inspector/inspector.go @@ -20,7 +20,7 @@ import ( var ( mon = monkit.Package() - // Error wraps errors returned from Server struct methods + // Error wraps errors returned from Server struct methods. Error = errs.Class("Endpoint error") ) diff --git a/satellite/metainfo/config.go b/satellite/metainfo/config.go index 64338f598..218a37f49 100644 --- a/satellite/metainfo/config.go +++ b/satellite/metainfo/config.go @@ -19,7 +19,7 @@ import ( ) const ( - // BoltPointerBucket is the string representing the bucket used for `PointerEntries` in BoltDB + // BoltPointerBucket is the string representing the bucket used for `PointerEntries` in BoltDB. BoltPointerBucket = "pointers" ) diff --git a/satellite/metainfo/expireddeletion/chore.go b/satellite/metainfo/expireddeletion/chore.go index 82d513d67..46df1194c 100644 --- a/satellite/metainfo/expireddeletion/chore.go +++ b/satellite/metainfo/expireddeletion/chore.go @@ -16,7 +16,7 @@ import ( ) var ( - // Error defines the expireddeletion chore errors class + // Error defines the expireddeletion chore errors class. Error = errs.Class("expireddeletion chore error") mon = monkit.Package() ) diff --git a/satellite/metainfo/metainfo.go b/satellite/metainfo/metainfo.go index 3c172d7b5..df9c4af65 100644 --- a/satellite/metainfo/metainfo.go +++ b/satellite/metainfo/metainfo.go @@ -48,9 +48,9 @@ const ( var ( mon = monkit.Package() - // Error general metainfo error + // Error general metainfo error. Error = errs.Class("metainfo error") - // ErrNodeAlreadyExists pointer already has a piece for a node err + // ErrNodeAlreadyExists pointer already has a piece for a node err. ErrNodeAlreadyExists = errs.Class("metainfo error: node already exists") ) diff --git a/satellite/metainfo/objectdeletion/state.go b/satellite/metainfo/objectdeletion/state.go index f16980fd7..98d5e16a4 100644 --- a/satellite/metainfo/objectdeletion/state.go +++ b/satellite/metainfo/objectdeletion/state.go @@ -42,13 +42,13 @@ func (state *ObjectState) Status() ObjectStatus { type ObjectStatus byte const ( - // ObjectMissing represents when there's no object with that particular name + // ObjectMissing represents when there's no object with that particular name. ObjectMissing = ObjectStatus(iota) - // ObjectMultiSegment represents a multi segment object + // ObjectMultiSegment represents a multi segment object. ObjectMultiSegment - // ObjectSingleSegment represents a single segment object + // ObjectSingleSegment represents a single segment object. ObjectSingleSegment - // ObjectActiveOrZombie represents either an object is being uploaded, deleted or it's a zombie + // ObjectActiveOrZombie represents either an object is being uploaded, deleted or it's a zombie. ObjectActiveOrZombie ) diff --git a/satellite/nodeselection/common.go b/satellite/nodeselection/common.go index 3bdcf67a3..1708ee013 100644 --- a/satellite/nodeselection/common.go +++ b/satellite/nodeselection/common.go @@ -11,6 +11,6 @@ import ( var ( mon = monkit.Package() - // Error represents an nodeselection error + // Error represents an nodeselection error. Error = errs.Class("nodeselection") ) diff --git a/satellite/orders/endpoint.go b/satellite/orders/endpoint.go index 245299b76..a774b6d72 100644 --- a/satellite/orders/endpoint.go +++ b/satellite/orders/endpoint.go @@ -112,9 +112,9 @@ type PendingSerial struct { } var ( - // Error the default orders errs class + // Error the default orders errs class. Error = errs.Class("orders error") - // ErrUsingSerialNumber error class for serial number + // ErrUsingSerialNumber error class for serial number. ErrUsingSerialNumber = errs.Class("serial number") errExpiredOrder = errs.Class("order limit expired") diff --git a/satellite/overlay/config.go b/satellite/overlay/config.go index ec1570e23..6b5a8180a 100644 --- a/satellite/overlay/config.go +++ b/satellite/overlay/config.go @@ -14,7 +14,7 @@ import ( var ( mon = monkit.Package() - // Error represents an overlay error + // Error represents an overlay error. Error = errs.Class("overlay error") ) diff --git a/satellite/overlay/nodeselectioncache_test.go b/satellite/overlay/nodeselectioncache_test.go index 9606fbf91..cfcf961a3 100644 --- a/satellite/overlay/nodeselectioncache_test.go +++ b/satellite/overlay/nodeselectioncache_test.go @@ -37,13 +37,13 @@ var nodeSelectionConfig = overlay.NodeSelectionConfig{ const ( // staleness is how stale the cache can be before we sync with - // the database to refresh the cache + // the database to refresh the cache. - // using a negative time will force the cache to refresh every time + // using a negative time will force the cache to refresh every time. lowStaleness = -time.Hour // using a positive time will make it so that the cache is only refreshed when - // it hasn't been in the past hour + // it hasn't been in the past hour. highStaleness = time.Hour ) diff --git a/satellite/rewards/rewards.go b/satellite/rewards/rewards.go index e57bc15db..96cc28d66 100644 --- a/satellite/rewards/rewards.go +++ b/satellite/rewards/rewards.go @@ -69,13 +69,13 @@ type Offers []Offer type OfferType int const ( - // Invalid is a default value for offers that don't have correct type associated with it + // Invalid is a default value for offers that don't have correct type associated with it. Invalid = OfferType(0) - // FreeCredit is a type of offers used for Free Credit Program + // FreeCredit is a type of offers used for Free Credit Program. FreeCredit = OfferType(1) - // Referral is a type of offers used for Referral Program + // Referral is a type of offers used for Referral Program. Referral = OfferType(2) - // Partner is an OfferType used be the Open Source Partner Program + // Partner is an OfferType used be the Open Source Partner Program. Partner = OfferType(3) ) diff --git a/satellite/satellitedb/database.go b/satellite/satellitedb/database.go index 4eda0b168..1cb2137ec 100644 --- a/satellite/satellitedb/database.go +++ b/satellite/satellitedb/database.go @@ -33,7 +33,7 @@ import ( ) var ( - // Error is the default satellitedb errs class + // Error is the default satellitedb errs class. Error = errs.Class("satellitedb") ) diff --git a/satellite/satellitedb/dbx/gen.go b/satellite/satellitedb/dbx/gen.go index 30753a0b0..b956ba5d8 100644 --- a/satellite/satellitedb/dbx/gen.go +++ b/satellite/satellitedb/dbx/gen.go @@ -10,7 +10,7 @@ import ( "github.com/spacemonkeygo/monkit/v3" "github.com/zeebo/errs" - // load our cockroach sql driver for anywhere that uses this dbx.Open + // load our cockroach sql driver for anywhere that uses this dbx.Open. _ "storj.io/storj/private/dbutil/cockroachutil" "storj.io/storj/private/dbutil/txutil" "storj.io/storj/private/tagsql" diff --git a/satellite/satellitedb/dbx/satellitedb.dbx.go b/satellite/satellitedb/dbx/satellitedb.dbx.go index 0a1fa4212..fe2d6969b 100644 --- a/satellite/satellitedb/dbx/satellitedb.dbx.go +++ b/satellite/satellitedb/dbx/satellitedb.dbx.go @@ -23,7 +23,7 @@ import ( "storj.io/storj/private/tagsql" ) -// Prevent conditional imports from causing build failures +// Prevent conditional imports from causing build failures. var _ = strconv.Itoa var _ = strings.LastIndex var _ = fmt.Sprint diff --git a/satellite/satellitedb/migrate.go b/satellite/satellitedb/migrate.go index 2f2c6a0a4..f7fb2a78a 100644 --- a/satellite/satellitedb/migrate.go +++ b/satellite/satellitedb/migrate.go @@ -19,9 +19,9 @@ import ( ) var ( - // ErrMigrate is for tracking migration errors + // ErrMigrate is for tracking migration errors. ErrMigrate = errs.Class("migrate") - // ErrMigrateMinVersion is for migration min version errors + // ErrMigrateMinVersion is for migration min version errors. ErrMigrateMinVersion = errs.Class("migrate min version") ) diff --git a/satellite/satellitedb/offers.go b/satellite/satellitedb/offers.go index c39c9e2f6..7d6651ec4 100644 --- a/satellite/satellitedb/offers.go +++ b/satellite/satellitedb/offers.go @@ -18,7 +18,7 @@ import ( ) var ( - // offerErr is the default offer errors class + // offerErr is the default offer errors class. offerErr = errs.Class("offers error") ) diff --git a/satellite/satellitedb/orders.go b/satellite/satellitedb/orders.go index 2aae2f75c..e298655b9 100644 --- a/satellite/satellitedb/orders.go +++ b/satellite/satellitedb/orders.go @@ -28,15 +28,15 @@ const defaultIntervalSeconds = int(time.Hour / time.Second) var ( // ErrDifferentStorageNodes is returned when ProcessOrders gets orders from different storage nodes. ErrDifferentStorageNodes = errs.Class("different storage nodes") - // ErrBucketFromSerial is returned when there is an error trying to get the bucket name from the serial number + // ErrBucketFromSerial is returned when there is an error trying to get the bucket name from the serial number. ErrBucketFromSerial = errs.Class("bucket from serial number") - // ErrUpdateBucketBandwidthSettle is returned when there is an error updating bucket bandwidth + // ErrUpdateBucketBandwidthSettle is returned when there is an error updating bucket bandwidth. ErrUpdateBucketBandwidthSettle = errs.Class("update bucket bandwidth settle") - // ErrProcessOrderWithWindowTx is returned when there is an error with the ProcessOrders transaction + // ErrProcessOrderWithWindowTx is returned when there is an error with the ProcessOrders transaction. ErrProcessOrderWithWindowTx = errs.Class("process order with window transaction") - // ErrGetStoragenodeBandwidthInWindow is returned when there is an error getting all storage node bandwidth for a window + // ErrGetStoragenodeBandwidthInWindow is returned when there is an error getting all storage node bandwidth for a window. ErrGetStoragenodeBandwidthInWindow = errs.Class("get storagenode bandwidth in window") - // ErrCreateStoragenodeBandwidth is returned when there is an error updating storage node bandwidth + // ErrCreateStoragenodeBandwidth is returned when there is an error updating storage node bandwidth. ErrCreateStoragenodeBandwidth = errs.Class("create storagenode bandwidth") ) diff --git a/storage/boltdb/client.go b/storage/boltdb/client.go index c2454a25e..952d150aa 100644 --- a/storage/boltdb/client.go +++ b/storage/boltdb/client.go @@ -32,7 +32,7 @@ type Client struct { } const ( - // fileMode sets permissions so owner can read and write + // fileMode sets permissions so owner can read and write. fileMode = 0600 defaultTimeout = 1 * time.Second ) diff --git a/storage/filestore/blob.go b/storage/filestore/blob.go index 583bedd70..89a848c11 100644 --- a/storage/filestore/blob.go +++ b/storage/filestore/blob.go @@ -18,7 +18,7 @@ const ( // FormatV0 is the identifier for storage format v0, which also corresponds to an absence of // format version information. FormatV0 storage.FormatVersion = 0 - // FormatV1 is the identifier for storage format v1 + // FormatV1 is the identifier for storage format v1. FormatV1 storage.FormatVersion = 1 // Note: New FormatVersion values should be consecutive, as certain parts of this blob store diff --git a/storage/filestore/store.go b/storage/filestore/store.go index e1e128f4c..f3acd6b94 100644 --- a/storage/filestore/store.go +++ b/storage/filestore/store.go @@ -20,7 +20,7 @@ import ( ) var ( - // Error is the default filestore error class + // Error is the default filestore error class. Error = errs.Class("filestore error") mon = monkit.Package() diff --git a/storage/redis/client.go b/storage/redis/client.go index 12218d1be..2ab373abe 100644 --- a/storage/redis/client.go +++ b/storage/redis/client.go @@ -20,7 +20,7 @@ import ( ) var ( - // Error is a redis error + // Error is a redis error. Error = errs.Class("redis error") mon = monkit.Package() diff --git a/storage/testsuite/long_bench.go b/storage/testsuite/long_bench.go index c63a672bc..47fc1f60f 100644 --- a/storage/testsuite/long_bench.go +++ b/storage/testsuite/long_bench.go @@ -27,10 +27,10 @@ import ( const ( maxProblems = 10 - // the largest and deepest level-2 directory in the dataset + // the largest and deepest level-2 directory in the dataset. largestLevel2Directory = "Peronosporales/hateless/" - // the directory in the dataset with the most immediate children + // the directory in the dataset with the most immediate children. largestSingleDirectory = "Peronosporales/hateless/tod/unricht/sniveling/Puyallup/" ) diff --git a/storagenode/contact/service.go b/storagenode/contact/service.go index a7063e679..d43a1cbf3 100644 --- a/storagenode/contact/service.go +++ b/storagenode/contact/service.go @@ -23,7 +23,7 @@ import ( var ( mon = monkit.Package() - // Error is the default error class for contact package + // Error is the default error class for contact package. Error = errs.Class("contact") errPingSatellite = errs.Class("ping satellite error") diff --git a/storagenode/inspector/inspector.go b/storagenode/inspector/inspector.go index b6902eacc..ca5c42317 100644 --- a/storagenode/inspector/inspector.go +++ b/storagenode/inspector/inspector.go @@ -23,7 +23,7 @@ import ( var ( mon = monkit.Package() - // Error is the default error class for piecestore monitor errors + // Error is the default error class for piecestore monitor errors. Error = errs.Class("piecestore inspector") ) diff --git a/storagenode/monitor/monitor.go b/storagenode/monitor/monitor.go index a4d166f3e..9177bd804 100644 --- a/storagenode/monitor/monitor.go +++ b/storagenode/monitor/monitor.go @@ -23,7 +23,7 @@ import ( var ( mon = monkit.Package() - // Error is the default error class for piecestore monitor errors + // Error is the default error class for piecestore monitor errors. Error = errs.Class("piecestore monitor") ) diff --git a/storagenode/nodestats/service.go b/storagenode/nodestats/service.go index 2024d4410..d36e2b838 100644 --- a/storagenode/nodestats/service.go +++ b/storagenode/nodestats/service.go @@ -21,7 +21,7 @@ import ( ) var ( - // NodeStatsServiceErr defines node stats service error + // NodeStatsServiceErr defines node stats service error. NodeStatsServiceErr = errs.Class("node stats service error") mon = monkit.Package() diff --git a/storagenode/notifications/notifications.go b/storagenode/notifications/notifications.go index d698e9bf0..2fe20682a 100644 --- a/storagenode/notifications/notifications.go +++ b/storagenode/notifications/notifications.go @@ -27,7 +27,7 @@ type Type int const ( // TypeCustom is a common notification type which doesn't describe node's core functionality. - // TODO: change type name when all notification types will be known + // TODO: change type name when all notification types will be known. TypeCustom Type = 0 // TypeAuditCheckFailure is a notification type which describes node's audit check failure. TypeAuditCheckFailure Type = 1 diff --git a/storagenode/orders/service.go b/storagenode/orders/service.go index 8f9e55e20..1a97ac2a5 100644 --- a/storagenode/orders/service.go +++ b/storagenode/orders/service.go @@ -23,9 +23,9 @@ import ( ) var ( - // OrderError represents errors with orders + // OrderError represents errors with orders. OrderError = errs.Class("order") - // OrderNotFoundError is the error returned when an order is not found + // OrderNotFoundError is the error returned when an order is not found. OrderNotFoundError = errs.Class("order not found") mon = monkit.Package() diff --git a/storagenode/satellites/satellites.go b/storagenode/satellites/satellites.go index c674da96c..d12bfd477 100644 --- a/storagenode/satellites/satellites.go +++ b/storagenode/satellites/satellites.go @@ -14,15 +14,15 @@ import ( type Status = int const ( - //Unexpected status should not be used for sanity checking + //Unexpected status should not be used for sanity checking. Unexpected Status = 0 - //Normal status reflects a lack of graceful exit + //Normal status reflects a lack of graceful exit. Normal = 1 - //Exiting reflects an active graceful exit + //Exiting reflects an active graceful exit. Exiting = 2 - //ExitSucceeded reflects a graceful exit that succeeded + //ExitSucceeded reflects a graceful exit that succeeded. ExitSucceeded = 3 - //ExitFailed reflects a graceful exit that failed + //ExitFailed reflects a graceful exit that failed. ExitFailed = 4 ) diff --git a/storagenode/trust/excluder.go b/storagenode/trust/excluder.go index 6ee3e17ce..84429024e 100644 --- a/storagenode/trust/excluder.go +++ b/storagenode/trust/excluder.go @@ -14,7 +14,7 @@ import ( ) var ( - // ErrExclusion is an error class for exclusion related errors + // ErrExclusion is an error class for exclusion related errors. ErrExclusion = errs.Class("exclusion") ) diff --git a/storagenode/trust/file_source.go b/storagenode/trust/file_source.go index 30a583fa8..85681c26d 100644 --- a/storagenode/trust/file_source.go +++ b/storagenode/trust/file_source.go @@ -11,7 +11,7 @@ import ( ) var ( - // ErrFileSource is an error class for file source errors + // ErrFileSource is an error class for file source errors. ErrFileSource = errs.Class("file source") ) diff --git a/storagenode/trust/http_source.go b/storagenode/trust/http_source.go index 00f6d2893..951e4d2f0 100644 --- a/storagenode/trust/http_source.go +++ b/storagenode/trust/http_source.go @@ -16,7 +16,7 @@ import ( ) var ( - // ErrHTTPSource is an error class for HTTP source errors + // ErrHTTPSource is an error class for HTTP source errors. ErrHTTPSource = errs.Class("HTTP source") ) diff --git a/storagenode/trust/satellite_url.go b/storagenode/trust/satellite_url.go index cf2cb83b7..60d0165aa 100644 --- a/storagenode/trust/satellite_url.go +++ b/storagenode/trust/satellite_url.go @@ -17,7 +17,7 @@ import ( ) var ( - // ErrSatelliteURL is an error class for satellite URL related errors + // ErrSatelliteURL is an error class for satellite URL related errors. ErrSatelliteURL = errs.Class("invalid satellite URL") ) diff --git a/storagenode/trust/static_source.go b/storagenode/trust/static_source.go index 10960b2c6..d72f6bb83 100644 --- a/storagenode/trust/static_source.go +++ b/storagenode/trust/static_source.go @@ -10,7 +10,7 @@ import ( ) var ( - // ErrStaticSource is an error class for static source errors + // ErrStaticSource is an error class for static source errors. ErrStaticSource = errs.Class("static source") )