server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "server",
	Short: "Run the speakerbob server.",
	Long:  `Run the speakerbob server.`,
	Run:   Server,
}
View Source
var DefaultConfiguration = Configuration{
	LogLevel:      "info",
	Host:          "0.0.0.0",
	Port:          80,
	DataPath:      "/etc/speakerbob/data",
	DurationLimit: 10 * time.Second,
}

Functions

func Server

func Server(*cobra.Command, []string)

Types

type Configuration

type Configuration struct {
	LogLevel string `yaml:"log_level"`

	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	DataPath string `yaml:"data_path"`

	DurationLimit time.Duration `yaml:"duration_limit"`

	Auth struct {
		Github github.Provider `yaml:"github"`
	} `yaml:"auth"`
	// contains filtered or unexported fields
}

func (Configuration) Providers

func (c Configuration) Providers() []auth.Provider

Jump to

Keyboard shortcuts

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