package
0.0.0-20231014214933-bf83fb330073
Repository: https://github.com/skyrin/go-lib.git
Documentation: pkg.go.dev
# Functions
AsExtendedError helper function that returns the error as an ExtendedError if it is one.
Contains checks if the error contains the code/id.
ContainsError checks if the error contains the specified error message.
IsAnyPQError checks if the passed error is a Postgres error.
IsCouldNotLockPQError whether the error is a pg sql could not obtain lock error.
IsNoRowsPQError returns whether the error is a pg sql no rows found.
IsPQError checks if the passed error is the specified Postgres error code.
N shortcut for New that takes the entire code as one parameter See New for full details.
New creates a new error based on the code, id and message, it also sets the Message property of the extended error to the passed message.
NewStr creates a new error string based on the code, id and message.
W shorter version of wrap that takes the entire code as one parameter See Wrap for full details.
Wrap checks if the passed error has been wrapped before by this func and either wraps the original error as an ExtendedError or adds the debug message to the already existing ExtendedError's InnerError.
WrapWithMessage calls Wrap, then sets the extended error's message to the passed message.
WWM shorter version of WrapWithMsg that takes the entire code as one parameter.
# Constants
package:migration | migration/migration.go.
package:migration | migration/migration_list.go.
package:migration/sqlmodel | migration/sqlmodel/migration.go.
package:sql | sql/count.go.
package:sql | sql/row.go.
package:sql | sql/sql.go.
package:sql | sql/status.go.
package:sql | sql/txn.go.
package:sql | sql/rows.go.
package:sql | sql/bulk.go.
package:sql | sql/statement.go.
package:sql | sql/bulk_update.go.
package:process | process/process.go.
package:sqlmodel | process/internal/sqlmodel/process.go.
package:sqlmodel | process/internal/sqlmodel/process_run.go.
package:process | process/queue.go.
package:arc | arc/arc_client.go.
package:arc | arc/arcimedes_user.go.
package:arc | arc/cart_customer.go.
package:arc | arc/core_user.go.
package:arc | arc/deployment_data.go.
package:arc | arc/deployment_notify.go.
package:arc | arc/deployment.go.
package:arc | arc/grant_login.go.
package:arc | arc/grant.go.
package:arc | arc/response.go.
package:arc/sqlmodel | arc/sqlmodel/credential.go.
package:arc/sqlmodel | arc/sqlmodel/data.go.
package:arc/sqlmodel | arc/sqlmodel/deployment.go.
package:arc/sqlmodel | arc/sqlmodel/deployment_grant.go.
package: algolia.
No description provided by the author
No description provided by the author
package: sync.
No description provided by the author
No description provided by the author
package pubsub | pubsub/publish.go.
package pubsub | pubsub/subscriber.go.
package pubsub | pubsub/subscriber_notify.go.
package pubsub | pubsub/subscriber_process.go.
package pubsub/sqlmodel | pubsub/internal/sub_data_bulk.go.
package pubsub/sqlmodel | pubsub/internal/sqlmodel/pub.go.
package pubsub/sqlmodel | pubsub/internal/sqlmodel/sub.go.
package pubsub/sqlmodel | pubsub/internal/sqlmodel/data.go.
package pubsub/sqlmodel | pubsub/internal/sqlmodel/sub_data.go.
package pubsub | pubsub/subscriber_batch.go.
package pubsub | pubsub/subscriber_batch_queue.go.
package pubsub | pubsub/publisher.go.
package pubsub | pubsub/publish_batch.go.
package kafka | kafka/connection.go.
package kafka_aws_ec2 | kafka/aws/ec2/sasl.go.
No description provided by the author
No description provided by the author
arc.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
migrations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PQErr23505UniqueViolation Postgres code for unique violation.
PQErr42P01 pq: relation "<string>" does not exist.
PQErr58030IOError Postgres code for i/o error ("could not write to temporary file").
# Structs
ExtendedError is our custom error.