config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlags

func GetFlags() []cli.Flag

Types

type Options

type Options struct {
	BasicAuth     bool              `json:"basic-auth"`
	BasicAuthUser string            `json:"basic-auth-user"`
	BasicAuthPass string            `json:"-"`
	Commands      map[string]string `json:"commands"`
	Files         bool              `json:"files"`
	FilesDir      string            `json:"files-dir"`
	TokenAuth     bool              `json:"token-auth"`
	TokenKey      string            `json:"-"`
	Listen        string            `json:"listen-host"`
	Port          string            `json:"port"`
	Timeout       int               `json:"timeout"`
	Tls           bool              `json:"tls"`
	TlsCert       string            `json:"tls-cert"`
	TlsKey        string            `json:"tls-key"`
}
var Config *Options

Jump to

Keyboard shortcuts

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