Documentation
¶
Index ¶
Constants ¶
View Source
const ( // All is used when all the records needs to be worked on All string = "all" // One is used when oly a single record needs to be worked on One string = "one" // Count is used to count the number of documents returned Count string = "count" // Distinct is used to get the distinct values Distinct string = "distinct" // Upsert is used to upsert documents Upsert string = "upsert" // Delete is used to delete documents Delete string = "delete" // Update is used to update documents Update string = "update" // Create is used to create documents Create string = "create" )
View Source
const ( // Mongo is the constant for selecting MongoDB Mongo string = "mongo" // MySQL is the constant for selected MySQL MySQL string = "sql-mysql" // Postgres is the constant for selected Postgres Postgres string = "sql-postgres" )
View Source
const ( // TypeRealtimeSubscribe is the request type for live query subscription TypeRealtimeSubscribe string = "realtime-subscribe" // TypeRealtimeUnsubscribe is the request type for live query subscription TypeRealtimeUnsubscribe string = "realtime-unsubscribe" // TypeRealtimeFeed is the response type for realtime feed TypeRealtimeFeed string = "realtime-feed" // TypeServiceRegister is the request type for service registration TypeServiceRegister string = "service-register" // TypeServiceUnregister is the request type for service removal TypeServiceUnregister string = "service-unregister" // TypeServiceRequest is type triggering a service's function TypeServiceRequest string = "service-request" )
View Source
const ( // RealtimeInsert is for create operations RealtimeInsert string = "insert" // RealtimeUpdate is for update operations RealtimeUpdate string = "update" // RealtimeDelete is for delete operations RealtimeDelete string = "delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type M ¶
type M map[string]interface{}
M is a type representing a map
func GenerateFind ¶
GenerateFind generates a mongo db find clause from the provided condition
Click to show internal directories.
Click to hide internal directories.