server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(port string)

StartServer is responsible for setting up and lunching a simple web-server on the specified port

Types

type CreateSceneRequest

type CreateSceneRequest struct {
	SceneName     string   `json:"scene_name"`
	OutputFormats []string `json:"output_formats"`
	SceneType     string   `json:"scene_type"`
}

CreateSceneRequest reflects structure of data received from client for creating a PhotoScene

type ForgeServices

type ForgeServices struct {
	recap.ReCapAPI
}

ForgeServices holds all references necessary to access Forge services

type FrontendReport

type FrontendReport struct {
	Result      string `json:"result"`
	Description string `json:"description"`
}

FrontendReport is used to prepare a JSON response to frontend

type ImageSendContent

type ImageSendContent struct {
	ID       int16  `json:"id"`
	ImageURI string `json:"image_uri"`
}

ImageSendContent reflects the structure of data associated to each remote located image that has to be send to Photoscene

type ImageSendRequest

type ImageSendRequest struct {
	SceneID   string             `json:"scene_id"`
	ImageList []ImageSendContent `json:"image_list"`
}

ImageSendRequest reflects structure of data received from client sending remote located files to PhotoScene

type ResultRequest

type ResultRequest struct {
	SceneID string `json:"scene_id"`
	Format  string `json:"format"`
}

ResultRequest reflects the request for the specified format associated to given scene id

type SceneIDContent

type SceneIDContent struct {
	SceneID string `json:"scene_id"`
}

SceneIDContent is useful when the body request from client contains a reference to scene id in that scope

Jump to

Keyboard shortcuts

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