api

package
Version: v0.0.0-...-5ae6e0f Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package api implements all the handlers of all the apis available in this system.

Index

Constants

View Source
const HeaderP2PFaaSExecutionTime = "X-P2PFaaS-Timing-Execution-Time-Seconds"
View Source
const HeaderP2PFaaSExternallyExecuted = "X-P2PFaaS-Externally-Executed"
View Source
const HeaderP2PFaaSHops = "X-P2PFaaS-Hops"
View Source
const HeaderP2PFaaSPeersListId = "X-P2PFaaS-Peers-List-Id"
View Source
const HeaderP2PFaaSPeersListIp = "X-P2PFaaS-Peers-List-Ip"
View Source
const HeaderP2PFaaSProbingTime = "X-P2PFaaS-Timing-Probing-Time-Seconds"
View Source
const HeaderP2PFaaSProbingTimingsList = "X-P2PFaaS-Timing-Probing-Seconds-List"
View Source
const HeaderP2PFaaSScheduler = "X-P2PFaaS-Scheduler"
View Source
const HeaderP2PFaaSSchedulingTime = "X-P2PFaaS-Timing-Scheduling-Time-Seconds"
View Source
const HeaderP2PFaaSSchedulingTimingsList = "X-P2PFaaS-Timing-Scheduling-Seconds-List"
View Source
const HeaderP2PFaaSTotalTime = "X-P2PFaaS-Timing-Total-Time-Seconds"
View Source
const HeaderP2PFaaSTotalTimingsList = "X-P2PFaaS-Timing-Total-Seconds-List"
View Source
const HeaderP2PFaaSVersion = "X-P2PFaaS-Version"

Variables

This section is empty.

Functions

func FunctionGet

func FunctionGet(w http.ResponseWriter, r *http.Request)

func FunctionPost

func FunctionPost(w http.ResponseWriter, r *http.Request)

func GetConfiguration

func GetConfiguration(w http.ResponseWriter, r *http.Request)

Retrieve the current configuration of the system.

func GetScheduler

func GetScheduler(w http.ResponseWriter, r *http.Request)

Retrieve the scheduler information.

func Hello

func Hello(w http.ResponseWriter, r *http.Request)

func SetConfiguration

func SetConfiguration(w http.ResponseWriter, r *http.Request)

Set the configuration of the system (conform to config.ConfigurationSetExp) and save it to a file, in such a way it is load at the startup. This configuration does not include the scheduler information.

func SetScheduler

func SetScheduler(w http.ResponseWriter, r *http.Request)

Set the scheduler information and save the configuration to file in such a way it is loaded automatically at startup.

func SystemFunctionGet

func SystemFunctionGet(w http.ResponseWriter, r *http.Request)

func SystemFunctionsDelete

func SystemFunctionsDelete(w http.ResponseWriter, r *http.Request)

func SystemFunctionsGet

func SystemFunctionsGet(w http.ResponseWriter, r *http.Request)

func SystemFunctionsPost

func SystemFunctionsPost(w http.ResponseWriter, r *http.Request)

func SystemFunctionsPut

func SystemFunctionsPut(w http.ResponseWriter, r *http.Request)

func SystemScaleFunctionPost

func SystemScaleFunctionPost(w http.ResponseWriter, r *http.Request)

Types

type HelloResponse

type HelloResponse struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

Directories

Path Synopsis
Package api_monitoring implements all the handlers of all the apis called for monitoring the nodes, like for example probing.
Package api_monitoring implements all the handlers of all the apis called for monitoring the nodes, like for example probing.
Package api_peer implements all the handlers of all the apis called by other nodes.
Package api_peer implements all the handlers of all the apis called by other nodes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL