Documentation
¶
Overview ¶
Package errorsctx provides ready to use generic consumer and slog handlers.
Index ¶
- type Consumer
- type Layer
- func (c *Layer) Any(name string, value any)
- func (c *Layer) Bool(name string, value bool)
- func (c *Layer) Finalize()
- func (c *Layer) Flt64(name string, value float64)
- func (c *Layer) Int64(name string, value int64)
- func (c *Layer) Loc(position string)
- func (c *Layer) Str(name string, value string)
- func (c Layer) String() string
- func (c *Layer) Uint64(name string, value uint64)
- type LayerKind
- type SLogHandlerFlat
- type SLogHandlerTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
Layers []Layer
}
Consumer an implementation of errors.ErrorContextConsumer providing a tree view of the collected context grouped by layers of processing nodes.
func (*Consumer) Just ¶
func (c *Consumer) Just() errors.ErrorContextBuilder
type Layer ¶
type SLogHandlerFlat ¶
type SLogHandlerFlat struct {
// contains filtered or unexported fields
}
SLogHandlerFlat handler for a flat view of an error context.
func NewSLogHandlerFlat ¶
func NewSLogHandlerFlat(handler slog.Handler) *SLogHandlerFlat
type SLogHandlerTree ¶
type SLogHandlerTree struct {
// contains filtered or unexported fields
}
SLogHandlerTree handler for a tree view of an error context.
func NewSLogHandlerTree ¶
func NewSLogHandlerTree(handler slog.Handler) *SLogHandlerTree
NewSLogHandlerTree creates handler SLogHandlerTree.
Click to show internal directories.
Click to hide internal directories.