hashyzap

package
v0.0.0-...-93d3e9d Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgField

func MsgField(key string, val *dns.Msg) zap.Field

func Provide

func Provide() fx.Option

Provide sets up a zap.Logger for both fx and the application layer.

func ServerField

func ServerField(key string, val *dns.Server) zap.Field

Types

type MsgHdrMarshaler

type MsgHdrMarshaler dns.MsgHdr

func (MsgHdrMarshaler) MarshalLogObject

func (mhm MsgHdrMarshaler) MarshalLogObject(enc zapcore.ObjectEncoder) error

type MsgMarshaler

type MsgMarshaler dns.Msg

func (*MsgMarshaler) MarshalLogObject

func (mm *MsgMarshaler) MarshalLogObject(enc zapcore.ObjectEncoder) error

type QuestionMarshaler

type QuestionMarshaler dns.Question

func (QuestionMarshaler) MarshalLogObject

func (qm QuestionMarshaler) MarshalLogObject(enc zapcore.ObjectEncoder) error

type QuestionsMarshaler

type QuestionsMarshaler []dns.Question

func (QuestionsMarshaler) MarshalLogArray

func (qm QuestionsMarshaler) MarshalLogArray(enc zapcore.ArrayEncoder) (err error)

type ServerMarshaler

type ServerMarshaler dns.Server

func (*ServerMarshaler) MarshalLogObject

func (sm *ServerMarshaler) MarshalLogObject(enc zapcore.ObjectEncoder) error

Jump to

Keyboard shortcuts

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