configuration

package
v0.0.0-...-ed99955 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName           string `json:"app_name"`
	AppDev            string `json:"app_dev"`
	AppLicense        string `json:"app_license"`
	AppRepository     string `json:"app_repository"`
	AppURL            string `json:"app_url"`
	ConfigDir         string `json:"config_dir"`
	P2pConfigDir      string `json:"p2p_config_dir"`
	P2pWhitelistDir   string `json:"p2p_whitelist_dir"`
	P2pBlacklistDir   string `json:"p2p_blacklist_dir"`
	CertPathDir       string `json:"cert_path_dir"`
	CertPathSelfDir   string `json:"cert_path_self_dir"`
	CertPathRemote    string `json:"cert_path_remote"`
	PubKeyFilePath    string `json:"pubkey_filepath"`
	PrivKeyFilePath   string `json:"privkey_filepath"`
	SignedKeyFilePath string `json:"signedkey_filepath"`
	SelfCertFilePath  string `json:"self_cert_filepath"`
	PeeridPath        string `json:"peerid_path"`
	ChannelName       string `json:"channel_name"`
	ChannelDesc       string `json:"channel_desc"`
	ChannelCont       string `json:"channel_cont"`
	NodeKey           string `json:"node_key"`
	DbUser            string `json:"db_user"`
	DbPassword        string `json:"db_password"`
	DbName            string `json:"db_name"`
	DbPort            string `json:"db_port"`
	DbSSL             string `json:"db_SSL"`
	KaraiAPIPort      int    `json:"karai_api_port"`
	TableName         string `json:"table_name"`
	Lport             int    `json:"listen_port"`
	WantsClean        bool   `json:"wants_clean"`
}

func Config_Init

func Config_Init() Config

func (Config) GetAppDev

func (c Config) GetAppDev() string

func (Config) GetAppName

func (c Config) GetAppName() string

func (Config) GetConfigDir

func (c Config) GetConfigDir() string

func (Config) GetDBName

func (c Config) GetDBName() string

func (Config) GetDBSSL

func (c Config) GetDBSSL() string

func (Config) GetDBUser

func (c Config) GetDBUser() string

func (Config) GetListenPort

func (c Config) GetListenPort() int

func (Config) GetTableName

func (c Config) GetTableName() string

func (Config) GetWantsClean

func (c Config) GetWantsClean() bool

func (Config) GetcertPathDir

func (c Config) GetcertPathDir() string

func (Config) GetcertPathRemote

func (c Config) GetcertPathRemote() string

func (Config) GetcertPathSelfDir

func (c Config) GetcertPathSelfDir() string

func (Config) Getp2pBlacklistDir

func (c Config) Getp2pBlacklistDir() string

func (Config) Getp2pConfigDir

func (c Config) Getp2pConfigDir() string

func (Config) Getp2pWhitelistDir

func (c Config) Getp2pWhitelistDir() string

func (Config) SetconfigDir

func (c Config) SetconfigDir(dir string)

func (Config) SetkaraiAPIPort

func (c Config) SetkaraiAPIPort(port int)

func (Config) Setlport

func (c Config) Setlport(port int)

func (Config) SettableName

func (c Config) SettableName(name string)

func (Config) SetwantsClean

func (c Config) SetwantsClean(wants_clean bool)

Jump to

Keyboard shortcuts

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