config

package
v0.0.0-...-842742b Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(config *Config)

Types

type Config

type Config struct {

	// Auto loaded keys
	KeyPrivate *rsa.PrivateKey `json:"-"`
	KeyPublic  *rsa.PublicKey  `json:"-"`

	models.ModelSettings

	PublicKeyPath   string `json:"public_key_path"`
	PrivateKeyPath  string `json:"private_key_path"`
	PublicKeyString string `json:"-"`

	CrossOrigin bool   `json:"cross_origin"`
	Listen      string `json:"listen"`
}

func LoadConfig

func LoadConfig() *Config

Jump to

Keyboard shortcuts

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