responses

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTryLoginAgain             = response("Unable to login with those details - please try again!")
	ErrTryRegisterAgain          = response("Unable to register with those details - please try again!")
	ErrTryOrganizationAgain      = response("Unable to create or access that organization - please try again!")
	ErrTryProfileAgain           = response("Unable to create or access user profile - please try again!")
	ErrTryProjectAgain           = response("Unable to create or access that project - please try again!")
	ErrTryResendAgain            = response("Unable to resend email - please try again!")
	ErrFixProjectDetails         = response("Unable to create a project with those details - please correct them and try again!")
	ErrNeedProjectPermission     = response("Unable to access project - please request permission from your team owner.")
	ErrMemberNotFound            = response("Team member with the specified ID was not found.")
	ErrMissingOrganizationName   = response("Organization name is required.")
	ErrMissingOrganizationDomain = response("Organization domain is required.")
	ErrDomainAlreadyExists       = response("An organization with that workspace already exists.")
	ErrOrganizationNotFound      = response("Organization with the specified ID was not found.")
	ErrTenantNotFound            = response("Tenant with the specified ID was not found.")
	ErrProjectNotFound           = response("Project with the specified ID was not found.")
	ErrTopicNotFound             = response("Topic with the specified ID was not found.")
	ErrLogBackIn                 = response("Logged out of your account - please log back in!")
	ErrVerifyEmail               = response("Please verify your email address and try again!")
	ErrInvalidEmail              = response("Please enter a valid email address.")
	ErrVerificationFailed        = response("Email verification failed. Please contact support@rotational.io for assistance.")
	ErrSendPasswordResetFailed   = response("Unable to send password reset email. Please contact support@rotational.io for assistance.")
	ErrPasswordResetFailed       = response("Unable to reset your password. Please contact support@rotational.io for assistance.")
	ErrRequestNewInvite          = response("Invalid invitation link - please request a new one!")
	ErrSomethingWentWrong        = response("Oops - something went wrong!")
	ErrBadWorkspaceLookup        = response("Unable to lookup workspace - please update request and try again.")
	ErrBadResendRequest          = response("Unable to resend email - please update request and try again.")
	ErrRequestNewReset           = response("Unable to reset your password - please request a new password reset.")
	ErrWorkspaceNotFound         = response("Organization with specified domain not found.")

	AllResponses = map[string]struct{}{}
)

String errors intended to pass back from the server up to a **human** Beacon user so these need to make sense to our customers!

Functions

func RemarshalJSON added in v0.9.0

func RemarshalJSON(data []byte) (string, error)

Remarshal JSON data into a more readable string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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