server

package
v0.27.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPServerStopTimeout = time.Second * 10
	ServiceName           = "ucp"
)
View Source
const UCPProviderName = "ucp"

Variables

This section is empty.

Functions

func NewServer

func NewServer(options *Options) (*hosting.Host, error)

NewServer creates a new hosting.Host instance with services for API, EmbeddedETCD, Metrics, Profiler and Backend (if enabled) based on the given Options.

Types

type Options

type Options struct {
	Config                  *hostoptions.UCPConfig
	Port                    string
	StorageProviderOptions  dataprovider.StorageProviderOptions
	LoggingOptions          ucplog.LoggingOptions
	SecretProviderOptions   provider.SecretProviderOptions
	QueueProviderOptions    qprovider.QueueProviderOptions
	MetricsProviderOptions  metricsprovider.MetricsProviderOptions
	ProfilerProviderOptions profilerprovider.ProfilerProviderOptions
	TracerProviderOptions   trace.Options
	TLSCertDir              string
	PathBase                string
	InitialPlanes           []rest.Plane
	Identity                hostoptions.Identity
	UCPConnection           sdk.Connection
	Location                string
}

func NewServerOptionsFromEnvironment

func NewServerOptionsFromEnvironment() (Options, error)

NewServerOptionsFromEnvironment creates a new Options struct from environment variables and returns it along with any errors.

Jump to

Keyboard shortcuts

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