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
Click to show internal directories.
Click to hide internal directories.