config

package
v0.0.0-...-385ba70 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INI_SERVER         = "pwndrop"
	INI_VAR_LISTEN_IP  = "listen_ip"
	INI_VAR_HTTP_PORT  = "http_port"
	INI_VAR_HTTPS_PORT = "https_port"
	INI_VAR_DATA_DIR   = "data_dir"
	INI_VAR_ADMIN_DIR  = "admin_dir"

	INI_SETUP              = "setup"
	INI_SETUP_USERNAME     = "username"
	INI_SETUP_PASSWORD     = "password"
	INI_SETUP_REDIRECT_URL = "redirect_url"
	INI_SETUP_SECRET_PATH  = "secret_path"
)
View Source
const Version = "1.0.2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(path string) (*Config, error)

func (*Config) Get

func (c *Config) Get(key string) (string, error)

func (*Config) GetAdminDir

func (c *Config) GetAdminDir() string

func (*Config) GetCookieName

func (c *Config) GetCookieName() string

func (*Config) GetCookieToken

func (c *Config) GetCookieToken() string

func (*Config) GetDataDir

func (c *Config) GetDataDir() string

func (*Config) GetHttpPort

func (c *Config) GetHttpPort() int

func (*Config) GetHttpsPort

func (c *Config) GetHttpsPort() int

func (*Config) GetListenIP

func (c *Config) GetListenIP() string

func (*Config) GetRedirectUrl

func (c *Config) GetRedirectUrl() string

func (*Config) GetSecretPath

func (c *Config) GetSecretPath() string

func (*Config) HandleSetup

func (c *Config) HandleSetup() error

func (*Config) Save

func (c *Config) Save() error

func (*Config) Set

func (c *Config) Set(key string, value string) error

Jump to

Keyboard shortcuts

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