server

package
v0.0.0-...-cced42b Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package server provides the server subcommand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// Generic settings
	FileRoot string `help:"Root to scan for files" default:"/var/lib/run-dsp/fsprovider"`

	// GRPC settings
	GRPCListenAddr               string `help:"Listen address for the GRPC service" default:"0.0.0.0" env:"GRPC_LISTEN_ADDR"`
	GRPCPort                     int    `help:"Port for the GRPC service" default:"9090" env:"GRPC_PORT"`
	GRPCInsecure                 bool   `help:"Disable TLS" default:"false" env:"PROVIDER_INSECURE"`
	GRPCCert                     string `help:"Client certificate to use to authenticate with provider" env:"PROVIDER_CLIENT_CERT"`
	GRPCCertKey                  string `help:"Key to the client certificate" env:"PROVIDER_CLIENT_CERT_KEY"`
	GRPCVerifyClientCertificates bool   `help:"Require validated client certificates to connect" default:"false" env:"GRPC_VERIFY_CLIENT_CERTIFICATES" `
	GRPCClientCACert             string `help:"Custom CA certificate to verify client certificates with" env:"PROVIDER_CA"`

	// File publish settings
	PublishListenAddr string `help:"Listen address for the file publish service." default:"0.0.0.0" env:"PUBLISH_LISTEN_ADDR"`
	PublishPort       int    `help:"Port for the file publish service." default:"9091" env:"PUBLISH_PORT"`
	ExternalURL       string `help:"External address that the publish service is reachable from." default:"http://127.0.0.1:9091/" env:"EXTERNAL_URL"`
}

func (*Command) Run

func (c *Command) Run(p cli.Params) error

func (*Command) Validate

func (c *Command) Validate() error

Jump to

Keyboard shortcuts

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