runtime

package
v2.26.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 49 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(mainConf map[string]interface{}, pidFile, logLevel string)

Run runs a reva server with the given config file and pid file.

func RunWithOptions

func RunWithOptions(mainConf map[string]interface{}, pidFile string, opts ...Option)

RunWithOptions runs a reva server with the given config file, pid file and options.

Types

type Option

type Option func(o *Options)

Option defines a single option function.

func WithLogger

func WithLogger(logger *zerolog.Logger) Option

WithLogger provides a function to set the logger option.

func WithRegistry

func WithRegistry(r registry.Registry) Option

WithRegistry provides a function to set the registry.

func WithTraceProvider added in v2.15.0

func WithTraceProvider(tp trace.TracerProvider) Option

WithTraceProvider provides a function to set the trace provider.

type Options

type Options struct {
	Logger        *zerolog.Logger
	Registry      registry.Registry
	TraceProvider trace.TracerProvider
}

Options defines the available options for this package.

Jump to

Keyboard shortcuts

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