runtime

package
v2.27.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 49 Imported by: 3 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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