Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Feed struct {
pagination.Meta `json:",inline"`
Results []*FeedItem `json:"results"`
}
type FeedItem ¶
type FeedItem struct {
Id bson.ObjectId `json:"id" bson:"_id"`
Type ItemType `json:"type"`
Created time.Time `json:"created,omitempty" description:"when feed item is created"`
Updated time.Time `json:"updated,omitempty" description:"when feed item is updated"`
Owner bson.ObjectId `json:"owner" bson:"owner" description:""`
Target bson.ObjectId `json:"target" bson:"target" description:"target for this feed item"`
Project bson.ObjectId `json:"project" bson:"project" description:"project for this feed item"`
// data for scan types
ScanId bson.ObjectId `json:"-" bson:"scanid,omitempty"`
Scan *scan.Scan `json:"scan,omitempty" description:"scan shows only for type: scan"`
SummaryReport *target.SummaryReport `json:"summaryReport,omitempty" bson:"summaryReport" description:"shows only for type: scan"`
Techs []*tech.Tech `json:"techs,omitempty" bson:"techs" description:"shows only for type: scan"`
}
type ItemType ¶
type ItemType string
func (ItemType) MarshalJSON ¶
It's a hack to show custom type as string in swagger
Click to show internal directories.
Click to hide internal directories.