fbcloud

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TokenRefreshTimeout = time.Minute * 13

TokenRefreshTimeout is currently hardcoded to be just under the Cognito token timeout for cloud which is 15 minutes (I think I heard that somewhere anyway). It seems to work.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queryer

type Queryer struct {
	Host string

	ClientID string
	Region   string
	Email    string
	Password string
	// contains filtered or unexported fields
}

func (*Queryer) HTTPRequest

func (cq *Queryer) HTTPRequest(method, path, body string, v interface{}) ([]byte, error)

HTTPRequest can make an arbitrary http request to the host and tries to json unmarshal the response body into v if v is non-nil. This is handy for hitting cloud endpoints other than the query endpoint which is handled by Query. I don't think this is currently used, but I'd like to keep it around for debugging.

func (*Queryer) Query

func (cq *Queryer) Query(org string, db string, sql io.Reader) (*featurebase.WireQueryResponse, error)

Query issues a SQL query formatted for the FeatureBase cloud query endpoint.

Jump to

Keyboard shortcuts

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