tech

package
v0.0.0-...-a1447dc Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2015 License: MIT Imports: 3 Imported by: 0

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")
)
View Source
const (
	ActivityReported  = ActivityType("reported")  // the issue was reported by plugin
	ActivityConfirmed = ActivityType("confirmed") // the issue was confirmed by someone
)

Variables

This section is empty.

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

type Report

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

type Status

type Status struct {
	Confirmed bool `json:"confirmed"`
	False     bool `json:"false"`
}

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

	Tech   `json:",inline"`
	Status `json:",inline"`
}

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