server

package
v0.0.0-...-50eb1c6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(port, clientID, clientSecret string)

StartServer setups the endpoints and starts the http server with endpoints expected by the frontend

Types

type AccessTokenResponse

type AccessTokenResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int32  `json:"expires_in"`
}

AccessTokenResponse reflects the data expected by frontend when asking for a token

type BucketCreateInput

type BucketCreateInput struct {
	BucketKey string `json:"bucketKey"`
}

BucketCreateInput reflects the expected body when processing the POST request to bucket managing endpoint

type ForgeServices

type ForgeServices struct {
	oauth.TwoLeggedAuth
	dm.BucketAPI
	md.ModelDerivativeAPI
}

ForgeServices holds reference to all services required in this server

type Node

type Node struct {
	ID       string `json:"id"`
	Text     string `json:"text"`
	Type     string `json:"type"`
	Children bool   `json:"children"`
}

Node struct reflects the list element returned when asking the list of the buckets or list of objects in a bucket

type TranslationInput

type TranslationInput struct {
	BucketKey  string `json:"bucketKey"`
	ObjectName string `json:"objectName"`
}

TranslationInput reflects the expected body when processing the POST request to bucket managing endpoint

Jump to

Keyboard shortcuts

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