status

package
v1.19.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Statuses    statuses `json:"statuses"`
	LargeStatus string   `json:"largestatus"`
	Message     string   `json:"message"`
	Time        string   `json:"time"`
}

Response contains the structure of system statuses from Stripe

func GetStatus

func GetStatus() (Response, error)

GetStatus makes a request to the Stripe status site and returns all the current system statuses

func (*Response) FormattedMessage

func (r *Response) FormattedMessage(format string, verbose bool) (string, error)

FormattedMessage returns a properly structured API status response in either a json structure or a templated plain text output, conditionally populated with extra data depending on verbosity

Jump to

Keyboard shortcuts

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