log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldServiceName          = "service"
	FieldSize                 = "size"
	FieldBackoff              = "backoff"
	FieldServiceEndpoint      = "serviceEndpoint"
	FieldTreeID               = "treeID"
	FieldLeaf                 = "leaf"
	FieldStore                = "store"
	FieldCommand              = "command"
	FieldVerifiableCredential = "vc"
	FieldSignature            = "signature"
	FieldTimestamp            = "timestamp"
	FieldPublicKey            = "publicKey"
)

Log Fields.

Variables

This section is empty.

Functions

func WithBackoff

func WithBackoff(value time.Duration) zap.Field

WithBackoff sets the backoff field.

func WithCommand

func WithCommand(value string) zap.Field

WithCommand sets the command field.

func WithLeaf

func WithLeaf(value interface{}) zap.Field

WithLeaf sets the leaf field.

func WithPublicKey

func WithPublicKey(value interface{}) zap.Field

WithPublicKey sets the timestamp field.

func WithServiceEndpoint

func WithServiceEndpoint(value string) zap.Field

WithServiceEndpoint sets the service-endpoint field.

func WithServiceName

func WithServiceName(value string) zap.Field

WithServiceName sets the service field.

func WithSignature

func WithSignature(value []byte) zap.Field

WithSignature sets the signature field.

func WithSize

func WithSize(value int) zap.Field

WithSize sets the size field.

func WithStore

func WithStore(value string) zap.Field

WithStore sets the store field.

func WithTimestamp

func WithTimestamp(value uint64) zap.Field

WithTimestamp sets the timestamp field.

func WithTreeID

func WithTreeID(value int64) zap.Field

WithTreeID sets the service-endpoint field.

func WithVerifiableCredential

func WithVerifiableCredential(value []byte) zap.Field

WithVerifiableCredential sets the vc field.

Types

type ObjectMarshaller

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

ObjectMarshaller uses reflection to marshal an object's fields.

func NewObjectMarshaller

func NewObjectMarshaller(key string, obj interface{}) *ObjectMarshaller

NewObjectMarshaller returns a new ObjectMarshaller.

func (*ObjectMarshaller) MarshalLogObject

func (m *ObjectMarshaller) MarshalLogObject(e zapcore.ObjectEncoder) error

MarshalLogObject marshals the object's fields.

Jump to

Keyboard shortcuts

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