Documentation
¶
Overview ¶
Package stripe implements bounded revenue reads from the Stripe API.
Index ¶
- func IsReadStatement(raw json.RawMessage) bool
- func Validate(cfg *Config, creds Credentials) error
- func ValidateRestrictedKey(cfg *Config, creds Credentials) error
- type Config
- type Connector
- func (c *Connector) Close() error
- func (c *Connector) Execute(ctx context.Context, raw json.RawMessage, params map[string]types.TypedParam, ...) (*result.ExecutionResult, error)
- func (c *Connector) IntrospectSchema(ctx context.Context) (*Schema, error)
- func (c *Connector) TestConnection(ctx context.Context) error
- type Credentials
- type ObjectSchema
- type PropertySchema
- type Schema
- type SchemaIntrospector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReadStatement ¶
func IsReadStatement(raw json.RawMessage) bool
func Validate ¶
func Validate(cfg *Config, creds Credentials) error
func ValidateRestrictedKey ¶
func ValidateRestrictedKey(cfg *Config, creds Credentials) error
ValidateRestrictedKey checks customer-supplied credentials before storage or a draft test.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func (*Connector) Execute ¶
func (c *Connector) Execute(ctx context.Context, raw json.RawMessage, params map[string]types.TypedParam, limits ...types.ExecutionLimits) (*result.ExecutionResult, error)
func (*Connector) IntrospectSchema ¶
type Credentials ¶
type ObjectSchema ¶
type ObjectSchema struct {
Name string `json:"name"`
Properties []PropertySchema `json:"properties"`
}
type PropertySchema ¶
type Schema ¶
type Schema struct {
Objects []ObjectSchema `json:"objects"`
}
Click to show internal directories.
Click to hide internal directories.