tech

package
v0.0.0-...-c937b9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 4 Imported by: 18

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

Functions

This section is empty.

Types

type Activity

type Activity struct {
	Type    ActivityType `json:"type"`
	Created time.Time    `json:"created"`

	User   bson.ObjectId `json:"user,omitempty" bson:",omitempty" description:"who did the activity"`
	Report *Report       `json:"report,omitempty" description:"link to report for reported activity"`
}

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) Convert

func (t Category) Convert(text string) (interface{}, error)

func (Category) MarshalJSON

func (t Category) MarshalJSON() ([]byte, error)

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 Report

type Report struct {
	Report      bson.ObjectId `json:"report"`
	Scan        bson.ObjectId `json:"scan,omitempty" description:"scan id"`
	ScanSession bson.ObjectId `json:"session,omitempty" bson:"session" description:"scan session id"`
}

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"`
}

type Tech

type Tech struct {
	Categories []Category `json:"categories,omitempty"`
	Name       string     `json:"name"`
	Version    string     `json:"version"`
	Confidence int        `json:"confidence"`
	Icon       string     `json:"icon,omitempty" description:"base64 image"`
	Url        string     `json:"url" description:"url to technology"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL