config

package
v0.0.0-...-2bcf2af Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

config holds configuration for all the jnk application components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBridgeEnabled

func IsBridgeEnabled() bool

func IsMenshenEnabled

func IsMenshenEnabled() bool

func IsOpenVPNEnabled

func IsOpenVPNEnabled() bool

Types

type Config

type Config struct {
	ImageMenshen            string
	ImageOpenVPN            string
	ImageObfsVPN            string
	MenshenAllowGatewayList bool
	MenshenAllowBridgeList  bool
	MenshenAutoTLS          bool
	MenshenFromEIPURL       string
	MenshenPort             int
	MenshenServerName       string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func NewConfigFromViper

func NewConfigFromViper() *Config

NewConfigFromViper is intended to be used together with viper, which should be handled by the command.

Jump to

Keyboard shortcuts

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