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