grpc

package
v0.0.0-...-b8ed415 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(ctx context.Context, log logr.Logger, grpcServer *grpc.Server, port string, httpServer *http.Server, opts ...ServerOption) error

RunServer registers all services and runs the server.

Types

type Server

type Server struct {
	repository.Actions
	// contains filtered or unexported fields
}

Server options.

type ServerOption

type ServerOption func(*Server)

ServerOption for setting optional values.

func WithBmcTimeout

func WithBmcTimeout(t time.Duration) ServerOption

WithBmcTimeout sets the timeout for BMC calls.

func WithPersistence

func WithPersistence(repo repository.Actions) ServerOption

WithPersistence sets the log level.

func WithSkipRedfishVersions

func WithSkipRedfishVersions(versions []string) ServerOption

WithSkipRedfishVersions sets the Redfish versions to ignore for BMC calls.

Directories

Path Synopsis
oob
bmc

Jump to

Keyboard shortcuts

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