Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) Get(key string) (string, error)
- func (c *Config) GetAdminDir() string
- func (c *Config) GetCookieName() string
- func (c *Config) GetCookieToken() string
- func (c *Config) GetDataDir() string
- func (c *Config) GetHttpPort() int
- func (c *Config) GetHttpsPort() int
- func (c *Config) GetListenIP() string
- func (c *Config) GetRedirectUrl() string
- func (c *Config) GetSecretPath() string
- func (c *Config) HandleSetup() error
- func (c *Config) Save() error
- func (c *Config) Set(key string, value string) error
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 (*Config) GetAdminDir ¶
func (*Config) GetCookieName ¶
func (*Config) GetCookieToken ¶
func (*Config) GetDataDir ¶
func (*Config) GetHttpPort ¶
func (*Config) GetHttpsPort ¶
func (*Config) GetListenIP ¶
func (*Config) GetRedirectUrl ¶
func (*Config) GetSecretPath ¶
func (*Config) HandleSetup ¶
Click to show internal directories.
Click to hide internal directories.