options

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func DefaultOptions

func DefaultOptions() Config

func (Config) GetLogLevel

func (c Config) GetLogLevel() slog.Level

func (Config) GetLogWriter

func (c Config) GetLogWriter() io.Writer

type LogConfig

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

type Option

type Option func(*Config)

func WithLogLevel

func WithLogLevel(level slog.Level) Option

func WithLogWriter

func WithLogWriter(writer io.Writer) Option

Jump to

Keyboard shortcuts

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