Documentation ¶
Index ¶
Constants ¶
View Source
const ( CMS = Category("cms") JavascriptFrameworks = Category("javascript-frameworks") Analytics = Category("analytics") WebServers = Category("web-servers") AdvertisingNetworks = Category("advertising-networks") OperatingSystems = Category("operating-systems") MessageBoards = Category("message-boards") DatabaseManagers = Category("database-managers") DocumentationTools = Category("documentation-tools") Widgets = Category("widgets") ECommerce = Category("ecommerce") PhotoGalleries = Category("photo-galleries") Wikis = Category("wikis") HostingPanels = Category("hosting-panels") Blogs = Category("blogs") IssueTrackers = Category("issue-trackers") VideoPlayers = Category("video-players") CommentSystems = Category("comment-systems") Captchas = Category("captchas") FontScripts = Category("font-scripts") WebFrameworks = Category("web-frameworks") Miscellaneous = Category("miscellaneous") Editors = Category("editors") LMS = Category("lms") CacheTools = Category("cache-tools") RichTextEditors = Category("rich-text-editors") JavascriptGraphics = Category("javascript-graphics") MobileFrameworks = Category("mobile-frameworks") ProgrammingLanguages = Category("programming-languages") SearchEngines = Category("search-engines") WebMail = Category("web-mail") CDN = Category("cdn") MarketingAutomation = Category("marketing-automation") WebServerExtensions = Category("web-server-extensions") Databases = Category("databases") Maps = Category("maps") NetworkDevices = Category("network-devices") MediaServers = Category("media-servers") WebCams = Category("webcams") Printers = Category("printers") PaymentProcessors = Category("payment-processors") TagManagers = Category("tag-managers") PayWalls = Category("paywalls") BuildCISystems = Category("build-ci-systems") ControlSystems = Category("control-systems") RemoteAccess = Category("remote-access") DevTools = Category("dev-tools") NetworkStorage = Category("network-storage") FeedReaders = Category("feed-readers") DocumentManagementSystems = Category("document-management-systems") )
View Source
const ( ActivityReported = ActivityType("reported") // the issue was reported by plugin ActivityConfirmed = ActivityType("confirmed") // the issue was confirmed by someone ActivityFalse = ActivityType("false") // set to false ActivityTrue = ActivityType("true") // set to true )
View Source
const ( StatusUnknown = StatusType("unknown") StatusCorrect = StatusType("correct") StatusIncorrect = StatusType("incorrect") )
Variables ¶
View Source
var Categories = []Category{ CMS, JavascriptFrameworks, Analytics, WebServers, AdvertisingNetworks, OperatingSystems, MessageBoards, DatabaseManagers, DocumentationTools, Widgets, ECommerce, PhotoGalleries, Wikis, HostingPanels, Blogs, IssueTrackers, VideoPlayers, CommentSystems, Captchas, FontScripts, WebFrameworks, Miscellaneous, Editors, LMS, CacheTools, RichTextEditors, JavascriptGraphics, MobileFrameworks, ProgrammingLanguages, SearchEngines, WebMail, CDN, MarketingAutomation, WebServerExtensions, Databases, Maps, NetworkDevices, MediaServers, WebCams, Printers, PaymentProcessors, TagManagers, PayWalls, BuildCISystems, ControlSystems, RemoteAccess, DevTools, NetworkStorage, FeedReaders, DocumentManagementSystems, }
Functions ¶
This section is empty.
Types ¶
type ActivityType ¶
type ActivityType string
func (ActivityType) Convert ¶
func (t ActivityType) Convert(text string) (interface{}, error)
func (ActivityType) Enum ¶
func (t ActivityType) Enum() []interface{}
func (ActivityType) MarshalJSON ¶
func (t ActivityType) MarshalJSON() ([]byte, error)
It's a hack to show custom type as string in swagger
type Category ¶
type Category string
func (Category) MarshalJSON ¶
It's a hack to show custom type as string in swagger
type CategoryList ¶
type CategoryList struct { pagination.Meta `json:",inline"` Results []Category `json:"results"` }
type StatusType ¶
type StatusType string
func (StatusType) Convert ¶
func (t StatusType) Convert(text string) (interface{}, error)
func (StatusType) Enum ¶
func (t StatusType) Enum() []interface{}
func (StatusType) MarshalJSON ¶
func (t StatusType) MarshalJSON() ([]byte, error)
It's a hack to show custom type as string in swagger
type TargetTech ¶
type TargetTech struct { Id bson.ObjectId `json:"id,omitempty" bson:"_id"` Target bson.ObjectId `json:"target"` Project bson.ObjectId `json:"project"` Created time.Time `json:"created,omitempty" description:"when issue is created"` Updated time.Time `json:"updated,omitempty" description:"when issue is updated"` Activities []*Activity `json:"activities,omitempty"` Status StatusType `json:"status"` Tech `json:",inline" bson:",inline"` }
func (*TargetTech) AddReportActivity ¶
func (i *TargetTech) AddReportActivity(reportId, scanId, sessionId bson.ObjectId)
func (*TargetTech) AddUserReportActivity ¶
func (i *TargetTech) AddUserReportActivity(userId bson.ObjectId)
type TargetTechList ¶
type TargetTechList struct { pagination.Meta `json:",inline"` Results []*TargetTech `json:"results"` }
Click to show internal directories.
Click to hide internal directories.