common

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrExceedsFreeQuota indicates the requested operation exceeds the free quota.
	ErrExceedsFreeQuota = errors.New("request exceeds free quota")

	// ErrSubscriptionExists indicates the subscription already exists and has a healthy status.
	ErrSubscriptionExists = errors.New("subscription exists")

	// ErrSubscriptionCanceled indicates the subscription was canceled by the user or as a result of failed payment.
	ErrSubscriptionCanceled = errors.New("subscription canceled")

	// ErrSubscriptionPaymentRequired indicates the subscription is in a terminal status as a result of failed payment.
	ErrSubscriptionPaymentRequired = errors.New("subscription payment required")
)

Functions

func StatusCheck

func StatusCheck(status string) error

StatusCheck returns a non-nil error if the subscription status is considered healthy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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