cloud

package
v0.0.0-...-09eda65 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrResourceNotFound is returned when the requested resource is not found
	ErrResourceNotFound = errors.New("resource not found")
)

Functions

func FormatDsn

func FormatDsn(id, token string) string

func ParseDsn

func ParseDsn(dsn string) (id, token string, err error)

func ValidateDsn

func ValidateDsn(dsn string) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(id string, accessToken string) *Client

func (*Client) Ping

func (c *Client) Ping() error

func (Client) Request

func (c Client) Request(method string, url string, params map[string]any, v any) error

Jump to

Keyboard shortcuts

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