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 ¶
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, db, sql string) (*featurebase.WireQueryResponse, error)
Query issues a SQL query formatted for the FeatureBase cloud query endpoint.
Click to show internal directories.
Click to hide internal directories.