web

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAll

func DownloadAll(URL string) (map[string]string, error)

DownloadAll downloads assets from supplied URL

Types

type AppMeta

type AppMeta struct {
	Name        string
	Description string

	OriginURL    string
	Sdk          string
	Docker       bool
	Args         []string
	Config       string
	Build        string //build path
	UseSdkBuild  bool
	Dependency   string
	DbConfigPath string
	Assets       []string
	Selenium     map[string]interface{}
	HTTP         map[string]interface{}
	REST         map[string]interface{}
	// contains filtered or unexported fields
}

func (*AppMeta) GetArguments

func (m *AppMeta) GetArguments(dockerfile bool) string

type AppTemplate

type AppTemplate struct {
	Template    string `json:"template"`
	Description string `json:"description"`
	Sdk         string `json:"sdk"`
	Docker      bool   `json:"docker"`
	HasOrigin   bool   `json:"hasOrigin"`
}

type Build

type Build struct {
	Sdk         string
	App         string
	Origin      string
	TemplateApp string
	Docker      bool
	// contains filtered or unexported fields
}

type Datastore

type Datastore struct {
	Driver            string
	Name              string
	Version           string
	Config            bool
	MultiTableMapping bool
}

type DbMeta

type DbMeta struct {
	Id          string
	Name        string
	Kind        string
	Service     string
	Version     string
	Tag         string
	Credentials string
	Config      string
	Schema      string
	Dictionary  string //dictionary data
	Data        string //use case static data
	Sequence    bool
	Tables      []string
}

type DbTemplate

type DbTemplate struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	HasConfig bool   `json:"hasConfig"`
}

type GetRequest

type GetRequest struct{}

type GetResponse

type GetResponse struct {
	Status string
	Error  string
	Sdk    []string       `json:"sdk"`
	App    []*AppTemplate `json:"app"`
	Db     []*DbTemplate  `json:"db"`
}

type Map

type Map interface {
	Range(handler func(key string, value interface{}))
	Has(key string) bool
	Put(key string, value interface{})
	Get(key string) interface{}
	GetMap(key string) Map
	Remove(key string) Map
	SubMap(path string) Map
	Len() int
}

func NewMap

func NewMap() Map

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(service *Service) *Router

type RunRequest

type RunRequest struct {
	Origin    string
	Build     *Build
	Datastore *Datastore
	Testing   *Testing
}

func (*RunRequest) Validate

func (r *RunRequest) Validate() error

type RunResponse

type RunResponse struct {
	Data []byte
}

type SdkMeta

type SdkMeta struct {
	Sdk     string
	Version string
	Build   string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(baseTemplateURL, baseAssetURL string) *Service

func (*Service) Get

func (s *Service) Get(request *GetRequest) (*GetResponse, error)

func (*Service) Run

func (s *Service) Run(request *RunRequest) (*RunResponse, error)

type SystemService

type SystemService struct {
	Name    string
	Service string
}

type Testing

type Testing struct {
	REST        bool
	HTTP        bool
	Selenium    bool `json:"selenium"`
	UseCaseData bool `json:"useCaseData"`
}

Jump to

Keyboard shortcuts

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