Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JSONSchema string
Functions ¶
func Identifier ¶
Types ¶
type Client ¶
type Client struct { plugin.UnimplementedDestination // contains filtered or unexported fields }
func (Client) Sync ¶
func (c Client) Sync(ctx context.Context, options plugin.SyncOptions, res chan<- message.SyncMessage) error
type Spec ¶
type Spec struct { // The ID of the project to use for this client. If not specified, the project id will be auto-detected from the credentials. ProjectID string `json:"project_id"` // If `true` the `service_account_json` content will be treated as base64-encoded. UseBase64 bool `json:"use_base64" jsonschema:"default=false"` // Service account JSON content. ServiceAccountJSON string `json:"service_account_json"` // Maximum batch size for each request when reading Firestore data. MaxBatchSize int `json:"max_batch_size" jsonschema:"minimum=1"` // List of fields to order the results by. OrderBy string `json:"order_by"` // The order direction used when `order_by` is `true`. OrderDirection string `json:"order_direction" jsonschema:"enum=asc,enum=desc,default=asc"` }
Spec is the (nested) spec used by Firestore Source Plugin
func (Spec) JSONSchemaExtend ¶
func (Spec) JSONSchemaExtend(sc *jsonschema.Schema)
func (*Spec) SetDefaults ¶
func (s *Spec) SetDefaults()
Click to show internal directories.
Click to hide internal directories.