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: 22 Imported by: 0

README

Go API Server for server

Mobility Group Service allows to form groups formed multiple edge application instances and share user states automatically withing the group

Micro-service
meep-mg-manager

Type & Usage
Edge Service used by edge applications to share user state between the Mobility Group members

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:31:45.056-05:00
Running the server

To run the server, follow these simple steps:

go run main.go

Documentation

Index

Constants

View Source
const DEFAULT_LB_RULES_DB = 0

Variables

This section is empty.

Functions

func CreateMobilityGroup

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

func CreateMobilityGroupApp

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

func CreateMobilityGroupUe

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

func DeleteMobilityGroup

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

func DeleteMobilityGroupApp

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

func GetMobilityGroup

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

func GetMobilityGroupApp

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

func GetMobilityGroupAppList

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

func GetMobilityGroupList

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

func Index

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

func Init

func Init() (err error)

Init - Mobility Group Manager Init

func Logger

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

func NewRouter

func NewRouter() *mux.Router

func Run

func Run() (err error)

Run - MEEP MG Manager execution

func SetMobilityGroup

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

func SetMobilityGroupApp

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

func Stop

func Stop()

Stop - Shut down the service

func TransferAppState

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

Types

type MgManager

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

type MobilityGroup

type MobilityGroup struct {

	// Mobility Group name
	Name string `json:"name,omitempty"`

	// State Transfer mode
	StateTransferMode string `json:"stateTransferMode,omitempty"`

	// State Transfer trigger
	StateTransferTrigger string `json:"stateTransferTrigger,omitempty"`

	// Session Transfer mode
	SessionTransferMode string `json:"sessionTransferMode,omitempty"`

	// Load Balancing Algorithm
	LoadBalancingAlgorithm string `json:"loadBalancingAlgorithm,omitempty"`
}

Mobility Group

type MobilityGroupApp

type MobilityGroupApp struct {

	// Mobility Group Application Identifier
	Id string `json:"id,omitempty"`

	// Event handler url
	Url string `json:"url,omitempty"`
}

Mobility Group Application instance

type MobilityGroupAppState

type MobilityGroupAppState struct {

	// Mobility Group UE Identifier
	UeId string `json:"ueId,omitempty"`

	// Mobility Group Application State for provided UE
	UeState string `json:"ueState,omitempty"`
}

Mobility Group Application State

type MobilityGroupUe

type MobilityGroupUe struct {

	// Mobility Group UE Identifier
	Id string `json:"id,omitempty"`
}

Mobility Group UE instance

type Route

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

type Routes

type Routes []Route

Jump to

Keyboard shortcuts

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