server

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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
	AutoEnrollmentBackend  grpcinternal.AutoEnrollmentReadCreator
	AutoDiscoveryBackend   grpcinternal.AutoDiscoveryReadCreator
	BindAddrPort           netip.AddrPort
	Logger                 logr.Logger
	AutoEnrollmentEnabled  bool
	AutoDiscoveryEnabled   bool
	AutoDiscoveryNamespace string
}

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 WithAutoDiscoveryNamespace added in v0.19.0

func WithAutoDiscoveryNamespace(ns string) Option

WithAutoDiscoveryNamespace sets the namespace for auto discovery.

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