target

package
v0.0.0-...-854c770 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SummaryReport

type SummaryReport struct {
	Issues map[issue.Severity]int `json:"issues"`
}

type Target

type Target struct {
	Id      bson.ObjectId `json:"id,omitempty" bson:"_id"`
	Type    TargetType    `json:"type" description:"one of [web|mobile]"`
	Web     *WebTarget    `json:"web,omitempty" description:"information about web target"`
	Project bson.ObjectId `json:"project"`
	Created time.Time     `json:"created,omitempty"`
	Updated time.Time     `json:"updated,omitempty"`

	SummaryReport *SummaryReport `json:"summaryReport,omitempty" bson:"-"`
}

func (*Target) Addr

func (t *Target) Addr() string

type TargetList

type TargetList struct {
	pagination.Meta `json:",inline"`
	Results         []*Target `json:"results"`
}

type TargetType

type TargetType string
const (
	TypeWeb    TargetType = "web"
	TypeMobile TargetType = "mobile"
)

func (TargetType) Convert

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

func (TargetType) Enum

func (t TargetType) Enum() []interface{}

func (TargetType) MarshalJSON

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

It's a hack to show custom type as string in swagger

type WebTarget

type WebTarget struct {
	Domain string `json:"domain"`
}

Jump to

Keyboard shortcuts

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