Documentation ¶
Index ¶
- Constants
- type Action
- type AuthBaseOptions
- type AuthCreateOptions
- type AuthListOptions
- type AuthOperationRunner
- type AuthUpdateOptions
- type Connector
- func (f *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
- func (f *Connector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, ...) (common.RuntimeResult, error)
- func (f *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
- func (f *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
- func (f *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
- type DBOperationRunner
- type DBOptions
- type FSDocIDOptions
- type FSDocValueOptions
- type FSGetCollsOptions
- type FSQueryOptions
- type FirestoreOperationRunner
- type QueryCondition
- type Resource
- type SimpleCursor
- type UserObject
Constants ¶
View Source
const ( AUTH_UID_OP = "uid" AUTH_EMAIL_OP = "email" AUTH_PHOME_OP = "phone" AUTH_CREATE_OP = "create" AUTH_UPDATE_OP = "update" AUTH_DELETE_OP = "delete" AUTH_LIST_OP = "list" )
View Source
const ( DB_QUERY_OP = "query" DB_SET_OP = "set" DB_UPDATE_OP = "update" DB_APPEND_OP = "append" )
View Source
const ( FS_QUERY_FS_OP = "query_fs" FS_INSERT_DOC_OP = "insert_doc" FS_UPDATE_DOC_OP = "update_doc" FS_GET_DOC_OP = "get_doc" FS_DELETE_DOC_OP = "delete_doc" FS_GET_COLLS_OP = "get_colls" FS_QUERY_COLL_OP = "query_coll" )
View Source
const ( AUTH_SERVICE = "auth" DATABASE_SERVICE = "database" FIRESTORE_SERVICE = "firestore" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthBaseOptions ¶
type AuthBaseOptions struct {
Filter string `validate:"required"`
}
type AuthCreateOptions ¶
type AuthCreateOptions struct {
Object UserObject `validate:"required"`
}
type AuthListOptions ¶
type AuthOperationRunner ¶
type AuthOperationRunner struct {
// contains filtered or unexported fields
}
type AuthUpdateOptions ¶
type AuthUpdateOptions struct { UID string `validate:"required"` Object UserObject `validate:"required"` }
type Connector ¶
func (*Connector) GetMetaInfo ¶
func (f *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
GetMetaInfo get the collections in firestore
func (*Connector) TestConnection ¶
func (f *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
func (*Connector) ValidateActionTemplate ¶
func (f *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
func (*Connector) ValidateResourceOptions ¶
func (f *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
type DBOperationRunner ¶
type DBOperationRunner struct {
// contains filtered or unexported fields
}
type FSDocIDOptions ¶
type FSDocValueOptions ¶
type FSGetCollsOptions ¶
type FSGetCollsOptions struct {
Parent string
}
type FSQueryOptions ¶
type FSQueryOptions struct { Collection string `validate:"required"` CollectionType string `validate:"oneof=select input"` Where []QueryCondition Limit int OrderBy string OrderDirection string StartAt SimpleCursor `validate:"required"` EndAt SimpleCursor `validate:"required"` }
type FirestoreOperationRunner ¶
type FirestoreOperationRunner struct {
// contains filtered or unexported fields
}
type QueryCondition ¶
type SimpleCursor ¶
type SimpleCursor struct { Trigger bool Value interface{} }
Click to show internal directories.
Click to hide internal directories.