cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectName    = "conspirator"
	ProjectLicense = "apache2.0"
)

Project

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute initiates the server

Types

type Configuration

type Configuration struct {
	Domain           string            `json:"domain"`
	PublicAddress    string            `json:"publicAddress"`
	LogLevel         string            `json:"logLevel"`
	PollingEncoding  string            `json:"pollingEncoding"`
	MaxPollingEvents int               `json:"maxPollingEvents"`
	HTTP             HTTPConfiguration `json:"http"`
	DNS              DNSConfiguration  `json:"dns"`
	PluginsDirectory string            `json:"pluginsDirectory"`
	Plugin           Plugins           `json:"plugins"`
}

type DNSConfiguration

type DNSConfiguration struct {
	Zones     []string       `json:"zones"`
	Listeners []DNSListeners `json:"listeners"`
}

type DNSListeners

type DNSListeners struct {
	Address string                `json:"address"`
	Proto   string                `json:"proto"`
	Port    int                   `json:"port"`
	TLS     *DNSTransportSecurity `json:"tls,omitempty"`
}

type DNSTransportSecurity

type DNSTransportSecurity struct {
	PublicKey  string `json:"publicKey"`
	PrivateKey string `json:"privateKey"`
}

type ExtensionPlugins added in v0.2.0

type ExtensionPlugins struct {
	PollingServer *polling.PollingServer
}

ExtensionPlugins

type HTTPConfiguration

type HTTPConfiguration struct {
	EnableV2     bool                     `json:"enableV2"`
	Username     string                   `json:"username"`
	Password     string                   `json:"password"`
	CsrfKey      string                   `json:"csrfKey"`
	SigningKey   string                   `json:"signingKey"`
	TemplatePath string                   `json:"templatePath"`
	Listeners    []HTTPListeners          `json:"listeners"`
	Static       HTTPStaticConfigurration `json:"static"`
}

type HTTPListeners

type HTTPListeners struct {
	Address          string                `json:"address"`
	PollingSubdomain string                `json:"pollingSubdomain"`
	AllowList        []string              `json:"allowlist"`
	Port             int                   `json:"port"`
	TLS              HTTPTransportSecurity `json:"tls"`
}

type HTTPStaticConfigurration added in v0.2.0

type HTTPStaticConfigurration struct {
	Browsing bool   `json:"browsing"`
	Enable   bool   `json:"enable"`
	Path     string `json:"path"`
	Prefix   string `json:"prefix"`
}

type HTTPTransportSecurity

type HTTPTransportSecurity struct {
	Port       int    `json:"port"`
	PublicKey  string `json:"publicKey"`
	PrivateKey string `json:"privateKey"`
}

type Plugins added in v0.2.0

type Plugins struct{}

Jump to

Keyboard shortcuts

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