sink

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Journal

type Journal struct {
	Enable bool
}

func (*Journal) TargetJournal

func (j *Journal) TargetJournal(options *slog.HandlerOptions) (slog.Handler, error)

type Loki

type Loki struct {
	Enable  bool
	Address string
	Labels  []string
}

func (*Loki) TargetLoki

func (l *Loki) TargetLoki(options *slog.HandlerOptions) (slog.Handler, error)

type Sink

type Sink struct {
	Journal Journal
	Syslog  Syslog
	Loki    Loki
}

func (*Sink) Initialize

func (s *Sink) Initialize() (*slog.Logger, error)

type SinkTarget

type SinkTarget func(*slog.HandlerOptions) (slog.Handler, error)

type Syslog

type Syslog struct {
	Enable  bool
	Address string
}

func (*Syslog) TargetSyslog

func (s *Syslog) TargetSyslog(options *slog.HandlerOptions) (slog.Handler, error)

Jump to

Keyboard shortcuts

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