api

package
v0.0.0-...-5c4b95d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Overview

Package Menshen LEAP API

the purpose of this application is to provide a service that uses go code and libraries to define the VPN provisioning API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocationsFromEIPData

func GetLocationsFromEIPData(eip *m.EIPServiceV3) locationMap

func InitMetricsServer

func InitMetricsServer() *echo.Echo

func InitServer

func InitServer(cfg *Config) *echo.Echo

func ParseEIPServiceFile

func ParseEIPServiceFile(path string) (*m.EIPServiceV3, error)

Types

type Config

type Config struct {
	AllowGatewayListing bool
	AllowBridgeListing  bool
	AutoTLS             bool
	// EIP is an existing EIPv3 file in the local filesystem (legacy)
	EIP string
	// EIPULR is a remote endpoint where to fetch an existing EIPv3 file from (legacy)
	EIPURL string
	// LocalBridges is a list of addresses where the available bridge
	// containers expose their control ports.
	LocalBridges     []string
	LoadBalancerAddr string
	Port             int
	PortMetrics      int
	ServerName       string
	ClientCertURL    string
	CaFile           string
	DBFile           string
}

func (*Config) HasLegacyEIPFile

func (c *Config) HasLegacyEIPFile() bool

Jump to

Keyboard shortcuts

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