Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseClient ¶
type ParseClient struct {
ParseClient *parse.ParseClient
}
type ParseObjectMongoDB ¶
type ParseObjectMongoDB struct { ObjectID string `bson:"_id"` ClassName string `bson:"className"` Data map[string]interface{} `bson:"data"` }
ParseObjectMongoDB is a concrete implementation of ParseObject interface for MongoDB database
func (*ParseObjectMongoDB) Delete ¶
func (p *ParseObjectMongoDB) Delete(client *mongo.Client) error
Delete deletes this object from MongoDB database using the given client
func (*ParseObjectMongoDB) GetClassName ¶
func (p *ParseObjectMongoDB) GetClassName() string
GetClassName returns the class name of this object
func (*ParseObjectMongoDB) GetData ¶
func (p *ParseObjectMongoDB) GetData() map[string]interface{}
GetData returns the data of this object as a map
func (*ParseObjectMongoDB) GetObjectID ¶
func (p *ParseObjectMongoDB) GetObjectID() string
GetObjectID returns the object id of this object
type ParseObjectRedis ¶
type ParseObjectRedis struct { ObjectID string `json:"objectId"` ClassName string `json:"className"` Data map[string]interface{} `json:"data"` }
func (*ParseObjectRedis) GetClassName ¶
func (p *ParseObjectRedis) GetClassName() string
GetClassName returns the class name of this object
func (*ParseObjectRedis) GetData ¶
func (p *ParseObjectRedis) GetData() map[string]interface{}
GetData returns the data of this object as a map
func (*ParseObjectRedis) GetObjectID ¶
func (p *ParseObjectRedis) GetObjectID() string
GetObjectID returns the object id of this object
func (*ParseObjectRedis) Save ¶
func (p *ParseObjectRedis) Save(client *redis.Client) error
Save inserts or updates this object in Redis database using the given client
Click to show internal directories.
Click to hide internal directories.