config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Token  *Token  `mapstructure:"token"`
	OAuth2 *OAuth2 `mapstructure:"oauth2"`
	Github *Github `mapstrucutre:"github"`
}

func (*Auth) AuthenticationRequired

func (a *Auth) AuthenticationRequired() bool

type Github

type Github struct {
	RedirectUrl string   `mapstructure:"redirect_url"`
	Credentials string   `mapstructure:"credentials"`
	Scopes      []string `mapstructure:"scopes"`
	Secret      string   `mapstructure:"secret"`
}

type Hook

type Hook struct {
	Provider string `mapstructure:"provider"`
	Url      string `mapstructure:"url"`
	Token    string `mapstructure:"token"`
	Username string `mapstructure:"username"`
	Channel  string `mapstructure:"channel"`
}

type Manager

type Manager struct {
	Enabled         bool       `mapstructure:"enabled"`
	UseOSScreenshot bool       `mapstructure:"use_os_screenshot"`
	WebDriver       *WebDriver `mapstructure:"webdriver"`
}

type OAuth2

type OAuth2 struct {
	AuthUrl     string   `mapstructure:"auth_url"`
	TokenUrl    string   `mapstructure:"token_url"`
	RedirectUrl string   `mapstructure:"redirect_url"`
	UserUrl     string   `mapstructure:"user_url"`
	Credentials string   `mapstructure:"credentials"`
	Scopes      []string `mapstructure:"scopes"`
	Secret      string   `mapstructure:"secret"`
}

type Service

type Service struct {
	Port          uint16             `mapstructure:"port"`
	Autodetect    bool               `mapstructure:"autodetect_ip"`
	AutoDiscovery bool               `mapstructure:"auto_discovery"`
	HostIP        string             `mapstructure:"host_ip"`
	ServerURL     string             `mapstructure:"server_url"`
	DeviceManager map[string]Manager `mapstructure:"managers"`
	Hooks         []Hook             `mapstructure:"hooks"`
	Auth          Auth               `mapstructure:"auth"`
}

type Token

type Token struct {
}

type WebDriver

type WebDriver struct {
	BundleID string `mapstructure:"bundleId"`
}

Jump to

Keyboard shortcuts

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