private accessor
This commit is contained in:
@@ -17,9 +17,6 @@ type ProcessingResource struct {
|
||||
Parallel bool `bson:"parallel,omitempty" json:"parallel,omitempty"`
|
||||
ScalingModel uint `bson:"scaling_model,omitempty" json:"scaling_model,omitempty"`
|
||||
DiskIO string `bson:"disk_io,omitempty" json:"disk_io,omitempty"`
|
||||
|
||||
// Price uint `bson:"price,omitempty" json:"price,omitempty"`
|
||||
// License string `bson:"license,omitempty" json:"license,omitempty"`
|
||||
}
|
||||
|
||||
func (dma *ProcessingResource) Deserialize(j map[string]interface{}) utils.DBObject {
|
||||
@@ -42,7 +39,7 @@ func (dma *ProcessingResource) Serialize() map[string]interface{} {
|
||||
}
|
||||
|
||||
func (d *ProcessingResource) GetAccessor() utils.Accessor {
|
||||
data := &ProcessingMongoAccessor{}
|
||||
data := New()
|
||||
data.SetLogger(utils.PROCESSING_RESOURCE)
|
||||
return data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user