Documentation
¶
Index ¶
- Variables
- func ConditionBuilder(variable string, args map[string]interface{}, modelType *protobuff.ModelType) (map[string][]firestore.Query, error)
- func FilterBuilder(variable string, where map[string]interface{}, modelType *protobuff.ModelType) ([]firestore.Query, error)
- func LimitBuilder(param *graphql.ResolveParams) firestore.Query
- func LocalBuilder(variable string, args map[string]interface{}, modelType *protobuff.ModelType) firestore.Query
- func RootResolverQueryBuilder(param shared.CommonSystemParams, previewMode bool) ([]firestore.Query, error)
- type FireStoreDriver
- func (f *FireStoreDriver) AddATeamMemberToProject(ctx context.Context, projectId string, memberData map[string]interface{}) error
- func (f *FireStoreDriver) AddAuthAddOns(ctx context.Context, project *protobuff.Project, auth map[string]interface{}) error
- func (f *FireStoreDriver) AddCollection(ctx context.Context, projectName string) (*string, error)
- func (f *FireStoreDriver) AddDocumentToProject(ctx context.Context, projectId string, modelName string, ...) (interface{}, error)
- func (f *FireStoreDriver) AddFieldToModel(ctx context.Context, param shared.CommonSystemParams, isUpdate bool, ...) (*protobuff.ModelType, error)
- func (f *FireStoreDriver) AddModel(ctx context.Context, project *protobuff.Project, name string, ...) (*protobuff.ProjectSchema, error)
- func (f *FireStoreDriver) AddRelationFields(ctx context.Context, from *protobuff.ConnectionType, ...) error
- func (f *FireStoreDriver) AddTeamMetaInfo(ctx context.Context, docs []*protobuff.SystemUser) ([]*protobuff.SystemUser, error)
- func (f *FireStoreDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error
- func (f *FireStoreDriver) CheckCollectionExists(ctx context.Context, projectId string) (bool, error)
- func (f *FireStoreDriver) CheckOneToOneRelationExists(ctx context.Context, param *shared.ConnectDisconnectParam) (bool, error)
- func (f *FireStoreDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error
- func (f *FireStoreDriver) ConnectBuilder(ctx context.Context, param shared.CommonSystemParams) error
- func (f *FireStoreDriver) ConvertModel(ctx context.Context, project *protobuff.Project, modelName string) error
- func (f *FireStoreDriver) CountDocOfProject(ctx context.Context, param *shared.CommonSystemParams) (interface{}, error)
- func (f *FireStoreDriver) CountDocOfProjectBytes(ctx context.Context, param *shared.CommonSystemParams) ([]byte, error)
- func (f *FireStoreDriver) CountMedias(ctx context.Context, projectId string, param *graphql.ResolveParams) (int, error)
- func (f *FireStoreDriver) CountMultiDocumentOfProject(ctx context.Context, param shared.CommonSystemParams, previewMode bool) (int, error)
- func (f *FireStoreDriver) CreateMediaDocument(ctx context.Context, projectId string, media *protobuff.FileDetails) (*protobuff.FileDetails, error)
- func (f *FireStoreDriver) CreateRelation(ctx context.Context, projectId string, relation *shared.EdgeRelation) error
- func (f *FireStoreDriver) DeleteDocumentFromProject(ctx context.Context, param shared.CommonSystemParams) error
- func (f *FireStoreDriver) DeleteDocumentRelation(ctx context.Context, param shared.CommonSystemParams) error
- func (f *FireStoreDriver) DeleteDocumentsFromProject(ctx context.Context, param shared.CommonSystemParams) error
- func (f *FireStoreDriver) DeleteMediaFile(ctx context.Context, param shared.CommonSystemParams) error
- func (f *FireStoreDriver) DeleteProject(ctx context.Context, projectId string) error
- func (f *FireStoreDriver) DeleteRelation(ctx context.Context, param *shared.ConnectDisconnectParam, id string) error
- func (f *FireStoreDriver) DisconnectBuilder(ctx context.Context, param shared.CommonSystemParams) error
- func (f *FireStoreDriver) DropConnections(ctx context.Context, projectId string, from *protobuff.ConnectionType, ...) error
- func (f *FireStoreDriver) DropField(ctx context.Context, param shared.CommonSystemParams) error
- func (f *FireStoreDriver) DuplicateModel(ctx context.Context, project *protobuff.Project, modelName, newName string) (*protobuff.ProjectSchema, error)
- func (f *FireStoreDriver) GetAllRelationDocumentsOfSingleDocument(ctx context.Context, from string, arg *shared.CommonSystemParams) (interface{}, error)
- func (f *FireStoreDriver) GetLoggedInProjectUser(ctx context.Context, param *shared.CommonSystemParams) (*shared.DefaultDocumentStructure, error)
- func (f *FireStoreDriver) GetProject(ctx context.Context, id string) (*protobuff.Project, error)
- func (f *FireStoreDriver) GetProjectUser(ctx context.Context, phone, email, projectId string) (*shared.DefaultDocumentStructure, error)
- func (f *FireStoreDriver) GetProjectUsers(ctx context.Context, projectId string, keys []string) (map[string]*shared.DefaultDocumentStructure, error)
- func (f *FireStoreDriver) GetRelationIds(ctx context.Context, param *shared.ConnectDisconnectParam) ([]string, error)
- func (f *FireStoreDriver) GetSingleProjectDocument(ctx context.Context, param shared.CommonSystemParams) (*shared.DefaultDocumentStructure, error)
- func (f *FireStoreDriver) GetSingleProjectDocumentBytes(ctx context.Context, param shared.CommonSystemParams) ([]byte, error)
- func (f *FireStoreDriver) GetSingleProjectDocumentRevisions(ctx context.Context, param shared.CommonSystemParams) ([]*shared.DocumentRevisionHistory, error)
- func (f *FireStoreDriver) GetSingleRawDocumentFromProject(ctx context.Context, param shared.CommonSystemParams) (interface{}, error)
- func (f *FireStoreDriver) GetSystemUser(ctx context.Context, id string) (*protobuff.SystemUser, error)
- func (f *FireStoreDriver) ListFunctions(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[protobuff.CloudFunction], error)
- func (f *FireStoreDriver) ListMedias(ctx context.Context, projectId string, param *graphql.ResolveParams) ([]*protobuff.FileDetails, error)
- func (f *FireStoreDriver) ListProjects(ctx context.Context, userId string) ([]*protobuff.Project, error)
- func (f *FireStoreDriver) MetaDataLoader(ctx context.Context, projectId string, keys *dataloader.Keys) ([]*dataloader.Result, error)
- func (f *FireStoreDriver) NewInsertableRelations(ctx context.Context, param *shared.ConnectDisconnectParam) ([]string, error)
- func (f *FireStoreDriver) QueryMultiDocumentOfProject(ctx context.Context, param shared.CommonSystemParams) ([]*shared.DefaultDocumentStructure, error)
- func (f *FireStoreDriver) QueryMultiDocumentOfProjectBytes(ctx context.Context, param shared.CommonSystemParams) ([]byte, error)
- func (f *FireStoreDriver) RelationshipDataLoader(ctx context.Context, param *shared.CommonSystemParams, ...) (interface{}, error)
- func (f *FireStoreDriver) RelationshipDataLoaderBytes(ctx context.Context, param *shared.CommonSystemParams, ...) ([]byte, error)
- func (f *FireStoreDriver) RemoveATeamMemberFromProject(ctx context.Context, projectId string, memberId string) error
- func (f *FireStoreDriver) RemoveAuthAddOns(ctx context.Context, project *protobuff.Project, option map[string]interface{}) error
- func (f *FireStoreDriver) RenameField(ctx context.Context, oldFiledName string, repeatedGroup *string, ...) error
- func (f *FireStoreDriver) RenameModel(ctx context.Context, project *protobuff.Project, modelName, newName string) error
- func (f *FireStoreDriver) RunMigration(ctx context.Context, projectId string) error
- func (f *FireStoreDriver) SearchUsers(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[protobuff.SystemUser], error)
- func (f *FireStoreDriver) TransferProject(ctx context.Context, userId, from, to string) error
- func (f *FireStoreDriver) UpdateDocumentOfProject(ctx context.Context, param shared.CommonSystemParams, ...) error
- func (f *FireStoreDriver) UpdateUsages(ctx context.Context, projectId string, bandwidth float64) error
- func (f *FireStoreDriver) UpdateUser(ctx context.Context, user *protobuff.SystemUser, replace bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var FilterSuffix = map[string]string{
"eq": "==",
"ne": "!=",
"lt": "<",
"lte": "<=",
"gt": ">",
"gte": ">=",
"in": "in",
"not_in": "not-in",
}
Functions ¶
func ConditionBuilder ¶
func FilterBuilder ¶
func LimitBuilder ¶
func LimitBuilder(param *graphql.ResolveParams) firestore.Query
func LocalBuilder ¶
Types ¶
type FireStoreDriver ¶
func GetFirestoreDriver ¶
func GetFirestoreDriver(engine *protobuff.DriverCredentials) (*FireStoreDriver, error)
func (*FireStoreDriver) AddATeamMemberToProject ¶
func (*FireStoreDriver) AddAuthAddOns ¶
func (*FireStoreDriver) AddCollection ¶
func (*FireStoreDriver) AddDocumentToProject ¶
func (f *FireStoreDriver) AddDocumentToProject(ctx context.Context, projectId string, modelName string, doc *shared.DefaultDocumentStructure) (interface{}, error)
func (*FireStoreDriver) AddFieldToModel ¶
func (f *FireStoreDriver) AddFieldToModel(ctx context.Context, param shared.CommonSystemParams, isUpdate bool, repeatedGroupIdentifier *string) (*protobuff.ModelType, error)
func (*FireStoreDriver) AddModel ¶
func (f *FireStoreDriver) AddModel(ctx context.Context, project *protobuff.Project, name string, singleRecord bool) (*protobuff.ProjectSchema, error)
func (*FireStoreDriver) AddRelationFields ¶
func (f *FireStoreDriver) AddRelationFields(ctx context.Context, from *protobuff.ConnectionType, to *protobuff.ConnectionType) error
func (*FireStoreDriver) AddTeamMetaInfo ¶
func (f *FireStoreDriver) AddTeamMetaInfo(ctx context.Context, docs []*protobuff.SystemUser) ([]*protobuff.SystemUser, error)
func (*FireStoreDriver) BlacklistAToken ¶
func (f *FireStoreDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error
func (*FireStoreDriver) CheckCollectionExists ¶
func (*FireStoreDriver) CheckOneToOneRelationExists ¶
func (f *FireStoreDriver) CheckOneToOneRelationExists(ctx context.Context, param *shared.ConnectDisconnectParam) (bool, error)
func (*FireStoreDriver) CheckTokenBlacklisted ¶
func (f *FireStoreDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error
func (*FireStoreDriver) ConnectBuilder ¶
func (f *FireStoreDriver) ConnectBuilder(ctx context.Context, param shared.CommonSystemParams) error
func (*FireStoreDriver) ConvertModel ¶
func (*FireStoreDriver) CountDocOfProject ¶
func (f *FireStoreDriver) CountDocOfProject(ctx context.Context, param *shared.CommonSystemParams) (interface{}, error)
func (*FireStoreDriver) CountDocOfProjectBytes ¶
func (f *FireStoreDriver) CountDocOfProjectBytes(ctx context.Context, param *shared.CommonSystemParams) ([]byte, error)
func (*FireStoreDriver) CountMedias ¶
func (f *FireStoreDriver) CountMedias(ctx context.Context, projectId string, param *graphql.ResolveParams) (int, error)
func (*FireStoreDriver) CountMultiDocumentOfProject ¶
func (f *FireStoreDriver) CountMultiDocumentOfProject(ctx context.Context, param shared.CommonSystemParams, previewMode bool) (int, error)
func (*FireStoreDriver) CreateMediaDocument ¶
func (f *FireStoreDriver) CreateMediaDocument(ctx context.Context, projectId string, media *protobuff.FileDetails) (*protobuff.FileDetails, error)
func (*FireStoreDriver) CreateRelation ¶
func (f *FireStoreDriver) CreateRelation(ctx context.Context, projectId string, relation *shared.EdgeRelation) error
func (*FireStoreDriver) DeleteDocumentFromProject ¶
func (f *FireStoreDriver) DeleteDocumentFromProject(ctx context.Context, param shared.CommonSystemParams) error
func (*FireStoreDriver) DeleteDocumentRelation ¶
func (f *FireStoreDriver) DeleteDocumentRelation(ctx context.Context, param shared.CommonSystemParams) error
func (*FireStoreDriver) DeleteDocumentsFromProject ¶
func (f *FireStoreDriver) DeleteDocumentsFromProject(ctx context.Context, param shared.CommonSystemParams) error
func (*FireStoreDriver) DeleteMediaFile ¶
func (f *FireStoreDriver) DeleteMediaFile(ctx context.Context, param shared.CommonSystemParams) error
func (*FireStoreDriver) DeleteProject ¶
func (f *FireStoreDriver) DeleteProject(ctx context.Context, projectId string) error
func (*FireStoreDriver) DeleteRelation ¶
func (f *FireStoreDriver) DeleteRelation(ctx context.Context, param *shared.ConnectDisconnectParam, id string) error
func (*FireStoreDriver) DisconnectBuilder ¶
func (f *FireStoreDriver) DisconnectBuilder(ctx context.Context, param shared.CommonSystemParams) error
func (*FireStoreDriver) DropConnections ¶
func (f *FireStoreDriver) DropConnections(ctx context.Context, projectId string, from *protobuff.ConnectionType, to *protobuff.ConnectionType) error
func (*FireStoreDriver) DropField ¶
func (f *FireStoreDriver) DropField(ctx context.Context, param shared.CommonSystemParams) error
func (*FireStoreDriver) DuplicateModel ¶
func (f *FireStoreDriver) DuplicateModel(ctx context.Context, project *protobuff.Project, modelName, newName string) (*protobuff.ProjectSchema, error)
func (*FireStoreDriver) GetAllRelationDocumentsOfSingleDocument ¶
func (f *FireStoreDriver) GetAllRelationDocumentsOfSingleDocument(ctx context.Context, from string, arg *shared.CommonSystemParams) (interface{}, error)
func (*FireStoreDriver) GetLoggedInProjectUser ¶
func (f *FireStoreDriver) GetLoggedInProjectUser(ctx context.Context, param *shared.CommonSystemParams) (*shared.DefaultDocumentStructure, error)
func (*FireStoreDriver) GetProject ¶
func (*FireStoreDriver) GetProjectUser ¶
func (f *FireStoreDriver) GetProjectUser(ctx context.Context, phone, email, projectId string) (*shared.DefaultDocumentStructure, error)
func (*FireStoreDriver) GetProjectUsers ¶
func (f *FireStoreDriver) GetProjectUsers(ctx context.Context, projectId string, keys []string) (map[string]*shared.DefaultDocumentStructure, error)
func (*FireStoreDriver) GetRelationIds ¶
func (f *FireStoreDriver) GetRelationIds(ctx context.Context, param *shared.ConnectDisconnectParam) ([]string, error)
func (*FireStoreDriver) GetSingleProjectDocument ¶
func (f *FireStoreDriver) GetSingleProjectDocument(ctx context.Context, param shared.CommonSystemParams) (*shared.DefaultDocumentStructure, error)
func (*FireStoreDriver) GetSingleProjectDocumentBytes ¶
func (f *FireStoreDriver) GetSingleProjectDocumentBytes(ctx context.Context, param shared.CommonSystemParams) ([]byte, error)
func (*FireStoreDriver) GetSingleProjectDocumentRevisions ¶
func (f *FireStoreDriver) GetSingleProjectDocumentRevisions(ctx context.Context, param shared.CommonSystemParams) ([]*shared.DocumentRevisionHistory, error)
func (*FireStoreDriver) GetSingleRawDocumentFromProject ¶
func (f *FireStoreDriver) GetSingleRawDocumentFromProject(ctx context.Context, param shared.CommonSystemParams) (interface{}, error)
func (*FireStoreDriver) GetSystemUser ¶
func (f *FireStoreDriver) GetSystemUser(ctx context.Context, id string) (*protobuff.SystemUser, error)
func (*FireStoreDriver) ListFunctions ¶
func (f *FireStoreDriver) ListFunctions(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[protobuff.CloudFunction], error)
func (*FireStoreDriver) ListMedias ¶
func (f *FireStoreDriver) ListMedias(ctx context.Context, projectId string, param *graphql.ResolveParams) ([]*protobuff.FileDetails, error)
func (*FireStoreDriver) ListProjects ¶
func (*FireStoreDriver) MetaDataLoader ¶
func (f *FireStoreDriver) MetaDataLoader(ctx context.Context, projectId string, keys *dataloader.Keys) ([]*dataloader.Result, error)
func (*FireStoreDriver) NewInsertableRelations ¶
func (f *FireStoreDriver) NewInsertableRelations(ctx context.Context, param *shared.ConnectDisconnectParam) ([]string, error)
func (*FireStoreDriver) QueryMultiDocumentOfProject ¶
func (f *FireStoreDriver) QueryMultiDocumentOfProject(ctx context.Context, param shared.CommonSystemParams) ([]*shared.DefaultDocumentStructure, error)
func (*FireStoreDriver) QueryMultiDocumentOfProjectBytes ¶
func (f *FireStoreDriver) QueryMultiDocumentOfProjectBytes(ctx context.Context, param shared.CommonSystemParams) ([]byte, error)
func (*FireStoreDriver) RelationshipDataLoader ¶
func (f *FireStoreDriver) RelationshipDataLoader(ctx context.Context, param *shared.CommonSystemParams, connection map[string]interface{}) (interface{}, error)
func (*FireStoreDriver) RelationshipDataLoaderBytes ¶
func (f *FireStoreDriver) RelationshipDataLoaderBytes(ctx context.Context, param *shared.CommonSystemParams, connection map[string]interface{}) ([]byte, error)
func (*FireStoreDriver) RemoveATeamMemberFromProject ¶
func (*FireStoreDriver) RemoveAuthAddOns ¶
func (*FireStoreDriver) RenameField ¶
func (f *FireStoreDriver) RenameField(ctx context.Context, oldFiledName string, repeatedGroup *string, param shared.CommonSystemParams) error
func (*FireStoreDriver) RenameModel ¶
func (*FireStoreDriver) RunMigration ¶
func (f *FireStoreDriver) RunMigration(ctx context.Context, projectId string) error
func (*FireStoreDriver) SearchUsers ¶
func (f *FireStoreDriver) SearchUsers(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[protobuff.SystemUser], error)
func (*FireStoreDriver) TransferProject ¶
func (f *FireStoreDriver) TransferProject(ctx context.Context, userId, from, to string) error
func (*FireStoreDriver) UpdateDocumentOfProject ¶
func (f *FireStoreDriver) UpdateDocumentOfProject(ctx context.Context, param shared.CommonSystemParams, doc *shared.DefaultDocumentStructure, replace bool) error
func (*FireStoreDriver) UpdateUsages ¶
func (*FireStoreDriver) UpdateUser ¶
func (f *FireStoreDriver) UpdateUser(ctx context.Context, user *protobuff.SystemUser, replace bool) error
Click to show internal directories.
Click to hide internal directories.