server

package
v0.0.0-...-8f6edbe Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

README

Go API Server for server

This API is the main Platform Controller API for scenario configuration & sandbox management

Micro-service
meep-pfm-ctrl

Type & Usage
Platform main interface used by controller software to configure scenarios and manage sandboxes in the AdvantEDGE platform

Details
API details available at your-AdvantEDGE-ip-address/api

Overview

This server was generated by the [swagger-codegen] (https://github.com/swagger-api/swagger-codegen) project.
By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

To see how to make this your own, look here:

README

  • API version: 1.0.0
  • Build date: 2022-12-19T08:30:43.192-05:00
Running the server

To run the server, follow these simple steps:

go run main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSandbox

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

func CreateSandboxWithName

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

func CreateScenario

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

CreateScenario - Add new scenario to MEEP store

func DeleteSandbox

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

func DeleteSandboxList

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

func DeleteScenario

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

DeleteScenario - Delete scenario from MEEP store

func DeleteScenarioList

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

DeleteScenarioList - Delete all scenarios in MEEP store

func GetSandbox

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

func GetSandboxList

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

func GetScenario

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

GetScenario - Retrieve scenario from MEEP store

func GetScenarioList

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

GetScenarioList - Retrieve list of scenarios in MEEP store

func Index

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

func Init

func Init() (err error)

Init Initializes the Platform Controller

func Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter(priFe string, priSw string, altFe string, altSw string) *mux.Router

func Run

func Run() (err error)

Run Starts the Platform Controller

func SetScenario

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

SetScenario - Update scenario in MEEP store

func Stop

func Stop()

Types

type PlatformCtrl

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

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

type Routes

type Routes []Route

type Scenario

type Scenario struct {
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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