target

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ParamId = "target-id"

Variables

This section is empty.

Functions

This section is empty.

Types

type AndroidTargetEntity

type AndroidTargetEntity struct {
	Name string     `json:"name,omitempty" description:"target name, 80 symbols max" cmobile:"nonzero" validate:"max=80"`
	File *file.Meta `json:"file,omitempty" description:"apk file metadata"`
}

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 TargetFunction func(*restful.Request, *restful.Response, *target.Target, *project.Project)

type TargetService

type TargetService struct {
	*services.BaseService
	// contains filtered or unexported fields
}

func New

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

Jump to

Keyboard shortcuts

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