Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndroidTarget ¶
type SummaryReport ¶
type Target ¶
type Target struct { Id bson.ObjectId `json:"id,omitempty" bson:"_id"` Type TargetType `json:"type" description:"one of [web|android]"` Web *WebTarget `json:"web,omitempty" description:"information about web target"` Android *AndroidTarget `json:"android,omitempty" description:"information about android target"` Project bson.ObjectId `json:"project"` Created time.Time `json:"created,omitempty"` Updated time.Time `json:"updated,omitempty"` SummaryReport *SummaryReport `json:"summaryReport,omitempty" bson:"summaryReport"` }
type TargetList ¶
type TargetList struct { pagination.Meta `json:",inline"` Results []*Target `json:"results"` }
type TargetType ¶
type TargetType string
const ( TypeWeb TargetType = "web" TypeAndroid TargetType = "android" )
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
Click to show internal directories.
Click to hide internal directories.