Documentation ¶
Index ¶
Constants ¶
View Source
const ParamId = "target-id"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndroidTargetEntity ¶
type CommentEntity ¶
type CommentEntity struct {
Text string `json:"text" description:"raw markdown text"`
}
type TargetEntity ¶
type TargetEntity struct { Type target.TargetType `json:"type,omitempty" description:"one of [web|android]" create:"nonzero"` Web *WebTargetEntity `json:"web,omitempty" description:"information about web target" cweb:"nonzero"` Android *AndroidTargetEntity `json:"android,omitempty" description:"information about android target" cmobile:"nonzero"` Project string `json:"project,omitempty" create:"nonzero,bsonId"` }
type TargetFunction ¶
type TargetService ¶
type TargetService struct { *services.BaseService // contains filtered or unexported fields }
func New ¶
func New(base *services.BaseService) *TargetService
func (*TargetService) Register ¶
func (s *TargetService) Register(container *restful.Container)
func (*TargetService) TakeTarget ¶
func (s *TargetService) TakeTarget(fn TargetFunction) restful.RouteFunction
type WebTargetEntity ¶
type WebTargetEntity struct {
Domain string `json:"domain" cweb:"nonzero"`
}
Click to show internal directories.
Click to hide internal directories.