Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Classifier ¶
type Classifier struct { Id bson.ObjectId `bson:"_id"` Name string `bson:"name"` Category string `bson:"category"` Created time.Time `bson:"created"` Updated time.Time `bson:"updated"` Revision string `bson:"revision"` Data string `bson:"data"` }
Classifier provides the cmodel instance for classifier job.
func (*Classifier) FromProtoBuffer ¶
func (c *Classifier) FromProtoBuffer(category *pb.Classifier)
FromProtoBuffer gets data from protocol buffer and converts to the classifier structure.
func (*Classifier) ToProtoBuffer ¶
func (c *Classifier) ToProtoBuffer() *pb.Classifier
ToProtoBuffer converts the classifier structure into a protocol buffer classifier structure.
Click to show internal directories.
Click to hide internal directories.