log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldData              = "data"
	FieldSuffix            = "suffix"
	FieldSuffixes          = "suffixes"
	FieldOperationType     = "operationType"
	FieldOperation         = "operation"
	FieldTransactionTime   = "transactionTime"
	FieldTransactionNumber = "transactionNumber"
	FieldPatch             = "patch"
	FieldIsBatch           = "isBatch"
)

Log Fields.

Variables

This section is empty.

Functions

func WithData

func WithData(value []byte) slog.Attr

WithData sets the data field.

func WithError

func WithError(err error) slog.Attr

WithError sets the error field.

func WithIsBatch

func WithIsBatch(value bool) slog.Attr

WithIsBatch sets the is-batch field.

func WithOperation

func WithOperation(value interface{}) slog.Attr

WithOperation sets the operation field.

func WithOperationType

func WithOperationType(value string) slog.Attr

WithOperationType sets the operation-type field.

func WithPatch

func WithPatch(value interface{}) slog.Attr

WithPatch sets the patch field.

func WithSuffix

func WithSuffix(value string) slog.Attr

WithSuffix sets the suffix field.

func WithSuffixes

func WithSuffixes(value ...string) slog.Attr

WithSuffixes sets the suffixes field.

func WithTransactionNumber

func WithTransactionNumber(value uint64) slog.Attr

WithTransactionNumber sets the transaction-number field.

func WithTransactionTime

func WithTransactionTime(value uint64) slog.Attr

WithTransactionTime sets the transaction-time field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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