runtime

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 74 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

Option defines a single option function.

func WithContext added in v1.25.0

func WithContext(ctx context.Context) Option

WithContext sets the context to use.

func WithLogger

func WithLogger(logger *zerolog.Logger) Option

WithLogger provides a function to set the logger option.

func WithPidFile added in v1.25.0

func WithPidFile(pidfile string) Option

WithPidFile sets to pidfile to use.

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
	PidFile  string
	Ctx      context.Context
}

Options defines the available options for this package.

type Reva added in v1.25.0

type Reva struct {
	// contains filtered or unexported fields
}

Reva represents a full instance of reva.

func New added in v1.25.0

func New(config *config.Config, opt ...Option) (*Reva, error)

New creates a new reva instance.

func (*Reva) Start added in v1.25.0

func (r *Reva) Start() error

Start starts all the reva services and waits for a signal.

type Server added in v1.25.0

type Server struct {
	// contains filtered or unexported fields
}

Server represents a reva server (grpc or http).

func (*Server) Start added in v1.25.0

func (s *Server) Start() error

Start starts the server listening on the assigned listener.

Jump to

Keyboard shortcuts

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