server

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Backend      grpcinternal.BackendReadWriter
	BindAddrPort netip.AddrPort
	Logger       logr.Logger
}

func NewConfig

func NewConfig(opts ...Option) *Config

func (*Config) Start

func (c *Config) Start(ctx context.Context, log logr.Logger) error

type Option

type Option func(*Config)

Option is a functional option type.

func WithBackend

func WithBackend(b grpcinternal.BackendReadWriter) Option

WithBackend sets the backend for the server.

func WithBindAddrPort

func WithBindAddrPort(addrPort netip.AddrPort) Option

WithBindAddrPort sets the bind address and port for the server.

func WithLogger

func WithLogger(l logr.Logger) Option

WithLogger sets the logger for the server.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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