options

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithContext

func WithContext(ctx context.Context) Option

func WithEncMode

func WithEncMode(encMode cbor.EncMode) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

func WithPaths

func WithPaths(paths ...string) Option

func WithUseNamedPipes

func WithUseNamedPipes() Option

type Options

type Options struct {
	Logger       *slog.Logger
	EncMode      cbor.EncMode
	Context      context.Context
	Paths        []string
	UseNamedPipe bool
}

func NewOptions

func NewOptions(opts ...Option) *Options

Jump to

Keyboard shortcuts

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