encoder

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package encoder houses zap's shared internal buffer pool. Third-party packages can recreate the same functionality with buffers.NewPool.

Package encoder copy from zapcore.jsonEncoder

Index

Constants

This section is empty.

Variables

View Source
var (

	// Get retrieves a buffer from the pool, creating one if necessary.
	Get = _pool.Get
)

Functions

func NewCustomerEncoder

func NewCustomerEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder

Types

type CustomerEncoder

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

func (CustomerEncoder) AddArray

func (enc CustomerEncoder) AddArray(key string, arr zapcore.ArrayMarshaler) error

func (CustomerEncoder) AddBinary

func (enc CustomerEncoder) AddBinary(key string, val []byte)

func (CustomerEncoder) AddBool

func (enc CustomerEncoder) AddBool(key string, val bool)

func (CustomerEncoder) AddByteString

func (enc CustomerEncoder) AddByteString(key string, val []byte)

func (CustomerEncoder) AddComplex128

func (enc CustomerEncoder) AddComplex128(key string, val complex128)

func (CustomerEncoder) AddComplex64

func (enc CustomerEncoder) AddComplex64(k string, v complex64)

func (CustomerEncoder) AddDuration

func (enc CustomerEncoder) AddDuration(key string, val time.Duration)

func (CustomerEncoder) AddFloat32

func (enc CustomerEncoder) AddFloat32(key string, val float32)

func (CustomerEncoder) AddFloat64

func (enc CustomerEncoder) AddFloat64(key string, val float64)

func (CustomerEncoder) AddInt

func (enc CustomerEncoder) AddInt(k string, v int)

func (CustomerEncoder) AddInt16

func (enc CustomerEncoder) AddInt16(k string, v int16)

func (CustomerEncoder) AddInt32

func (enc CustomerEncoder) AddInt32(k string, v int32)

func (CustomerEncoder) AddInt64

func (enc CustomerEncoder) AddInt64(key string, val int64)

func (CustomerEncoder) AddInt8

func (enc CustomerEncoder) AddInt8(k string, v int8)

func (CustomerEncoder) AddObject

func (enc CustomerEncoder) AddObject(key string, obj zapcore.ObjectMarshaler) error

func (CustomerEncoder) AddReflected

func (enc CustomerEncoder) AddReflected(key string, obj interface{}) error

func (CustomerEncoder) AddString

func (enc CustomerEncoder) AddString(key, val string)

func (CustomerEncoder) AddTime

func (enc CustomerEncoder) AddTime(key string, val time.Time)

func (CustomerEncoder) AddUint

func (enc CustomerEncoder) AddUint(k string, v uint)

func (CustomerEncoder) AddUint16

func (enc CustomerEncoder) AddUint16(k string, v uint16)

func (CustomerEncoder) AddUint32

func (enc CustomerEncoder) AddUint32(k string, v uint32)

func (CustomerEncoder) AddUint64

func (enc CustomerEncoder) AddUint64(key string, val uint64)

func (CustomerEncoder) AddUint8

func (enc CustomerEncoder) AddUint8(k string, v uint8)

func (CustomerEncoder) AddUintptr

func (enc CustomerEncoder) AddUintptr(k string, v uintptr)

func (CustomerEncoder) AppendArray

func (enc CustomerEncoder) AppendArray(arr zapcore.ArrayMarshaler) error

func (CustomerEncoder) AppendBool

func (enc CustomerEncoder) AppendBool(val bool)

func (CustomerEncoder) AppendByteString

func (enc CustomerEncoder) AppendByteString(val []byte)

func (CustomerEncoder) AppendComplex128

func (enc CustomerEncoder) AppendComplex128(val complex128)

func (CustomerEncoder) AppendComplex64

func (enc CustomerEncoder) AppendComplex64(v complex64)

func (CustomerEncoder) AppendDuration

func (enc CustomerEncoder) AppendDuration(val time.Duration)

func (CustomerEncoder) AppendFloat32

func (enc CustomerEncoder) AppendFloat32(v float32)

func (CustomerEncoder) AppendFloat64

func (enc CustomerEncoder) AppendFloat64(v float64)

func (CustomerEncoder) AppendInt

func (enc CustomerEncoder) AppendInt(v int)

func (CustomerEncoder) AppendInt16

func (enc CustomerEncoder) AppendInt16(v int16)

func (CustomerEncoder) AppendInt32

func (enc CustomerEncoder) AppendInt32(v int32)

func (CustomerEncoder) AppendInt64

func (enc CustomerEncoder) AppendInt64(val int64)

func (CustomerEncoder) AppendInt8

func (enc CustomerEncoder) AppendInt8(v int8)

func (CustomerEncoder) AppendObject

func (enc CustomerEncoder) AppendObject(obj zapcore.ObjectMarshaler) error

func (CustomerEncoder) AppendReflected

func (enc CustomerEncoder) AppendReflected(val interface{}) error

func (CustomerEncoder) AppendString

func (enc CustomerEncoder) AppendString(val string)

func (CustomerEncoder) AppendTime

func (enc CustomerEncoder) AppendTime(val time.Time)

func (CustomerEncoder) AppendUint

func (enc CustomerEncoder) AppendUint(v uint)

func (CustomerEncoder) AppendUint16

func (enc CustomerEncoder) AppendUint16(v uint16)

func (CustomerEncoder) AppendUint32

func (enc CustomerEncoder) AppendUint32(v uint32)

func (CustomerEncoder) AppendUint64

func (enc CustomerEncoder) AppendUint64(val uint64)

func (CustomerEncoder) AppendUint8

func (enc CustomerEncoder) AppendUint8(v uint8)

func (CustomerEncoder) AppendUintptr

func (enc CustomerEncoder) AppendUintptr(v uintptr)

func (*CustomerEncoder) Clone

func (enc *CustomerEncoder) Clone() zapcore.Encoder

func (*CustomerEncoder) EncodeEntry

func (enc *CustomerEncoder) EncodeEntry(ent zapcore.Entry, fields []zap.Field) (*buffer.Buffer, error)

func (CustomerEncoder) OpenNamespace

func (enc CustomerEncoder) OpenNamespace(key string)

Jump to

Keyboard shortcuts

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