runtime

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 51 Imported by: 3

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.

type Options

type Options struct {
	Logger   *zerolog.Logger
	Registry registry.Registry
}

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