models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SlogDataKey grouped data
	SlogDataKey = "data"
	// SlogMessageKey text field
	SlogMessageKey = "message"
	// SlogErrorKey error field
	SlogErrorKey = "error"
)

Functions

This section is empty.

Types

type Attr

type Attr = slog.Attr

Make type aliases to slog

func ErrAttr

func ErrAttr(err error) Attr

func Float32Attr

func Float32Attr(key string, val float32) Attr

func Int32Attr

func Int32Attr(key string, val int32) Attr

func LogEntryAttr

func LogEntryAttr(log *LogEntry) Attr

func TimeAttr

func TimeAttr(key string, time time.Time) Attr

func UInt32Attr

func UInt32Attr(key string, val uint32) Attr

type Handler

type Handler = slog.Handler

Make type aliases to slog

type HandlerOptions

type HandlerOptions = slog.HandlerOptions

Make type aliases to slog

type Level

type Level = slog.Level

Make type aliases to slog

type LogEntry

type LogEntry struct {
	Organization string                 `json:"organization"`
	App          string                 `json:"app"`
	Label        string                 `json:"label"`
	Err          any                    `json:"error"`
	Props        map[string]interface{} `json:"props"`
}

type LogValuer

type LogValuer = slog.LogValuer

Make type aliases to slog

type Logger

type Logger = slog.Logger

Make type aliases to slog

type Value

type Value = slog.Value

Make type aliases to slog

Jump to

Keyboard shortcuts

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