Documentation ¶
Index ¶
- Constants
- func WithAlias(value string) zap.Field
- func WithAnchorString(value string) zap.Field
- func WithCommitment(value string) zap.Field
- func WithContent(value []byte) zap.Field
- func WithData(value []byte) zap.Field
- func WithDeactivated(value bool) zap.Field
- func WithDocument(value map[string]interface{}) zap.Field
- func WithGenesisTime(value uint64) zap.Field
- func WithID(value string) zap.Field
- func WithIsBatch(value bool) zap.Field
- func WithMaxSize(value int) zap.Field
- func WithNamespace(value string) zap.Field
- func WithOperation(value interface{}) zap.Field
- func WithOperationGenesisTime(value uint64) zap.Field
- func WithOperationID(value string) zap.Field
- func WithOperationType(value string) zap.Field
- func WithOperations(value interface{}) zap.Field
- func WithParameter(value string) zap.Field
- func WithPatch(value interface{}) zap.Field
- func WithRecoveryCommitment(value string) zap.Field
- func WithRequestBody(value []byte) zap.Field
- func WithResolutionModel(value interface{}) zap.Field
- func WithServiceName(value string) zap.Field
- func WithSidetreeTxn(value interface{}) zap.Field
- func WithSize(value int) zap.Field
- func WithSource(value string) zap.Field
- func WithSources(value ...string) zap.Field
- func WithSuffix(value string) zap.Field
- func WithSuffixes(value ...string) zap.Field
- func WithTotal(value int) zap.Field
- func WithTotalCommitments(value int) zap.Field
- func WithTotalCreateOperations(value int) zap.Field
- func WithTotalDeactivateOperations(value int) zap.Field
- func WithTotalOperations(value int) zap.Field
- func WithTotalPending(value uint) zap.Field
- func WithTotalRecoverOperations(value int) zap.Field
- func WithTotalUpdateOperations(value int) zap.Field
- func WithTransactionNumber(value uint64) zap.Field
- func WithTransactionTime(value uint64) zap.Field
- func WithURIString(value string) zap.Field
- func WithUpdateCommitment(value string) zap.Field
- func WithVersion(value string) zap.Field
- func WithVersionTime(value string) zap.Field
- type ObjectMarshaller
- type StringArrayMarshaller
Constants ¶
const ( FieldURI = "uri" FieldServiceName = "service" FieldData = "data" FieldRequestBody = "requestBody" FieldSize = "size" FieldMaxSize = "maxSize" FieldParameter = "parameter" FieldTotal = "total" FieldSuffix = "suffix" FieldSuffixes = "suffixes" FieldOperationType = "operationType" FieldOperation = "operation" FieldOperations = "operations" FieldOperationID = "operationID" FieldGenesisTime = "genesisTime" FieldOperationGenesisTime = "opGenesisTime" FieldSidetreeTxn = "sidetreeTxn" FieldID = "id" FieldResolutionModel = "resolutionModel" FieldVersion = "version" FieldNamespace = "namespace" FieldAnchorString = "anchorString" FieldSource = "source" FieldTotalPending = "totalPending" FieldTransactionTime = "transactionTime" FieldTransactionNumber = "transactionNumber" FieldCommitment = "commitment" FieldRecoveryCommitment = "recoveryCommitment" FieldUpdateCommitment = "updateCommitment" FieldTotalCommitments = "totalCommitments" FieldTotalOperations = "totalOperations" FieldTotalCreateOperations = "totalCreateOperations" FieldTotalUpdateOperations = "totalUpdateOperations" FieldTotalRecoverOperations = "totalRecoverOperations" FieldTotalDeactivateOperations = "totalDeactivateOperations" FieldDocument = "document" FieldDeactivated = "deactivated" FieldVersionTime = "versionTime" FieldPatch = "patch" FieldIsBatch = "isBatch" FieldContent = "content" FieldSources = "sources" FieldAlias = "alias" )
Log Fields.
Variables ¶
This section is empty.
Functions ¶
func WithAnchorString ¶
WithAnchorString sets the anchor-string field.
func WithCommitment ¶
WithCommitment sets the commitment field.
func WithDeactivated ¶
WithDeactivated sets the deactivated field.
func WithDocument ¶
WithDocument sets the document field.
func WithGenesisTime ¶
WithGenesisTime sets the genesis-time field.
func WithNamespace ¶
WithNamespace sets the namespace field.
func WithOperation ¶
WithOperation sets the operation field.
func WithOperationGenesisTime ¶
WithOperationGenesisTime sets the op-genesis-time field.
func WithOperationID ¶
WithOperationID sets the operation-id field.
func WithOperationType ¶
WithOperationType sets the operation-type field.
func WithOperations ¶
WithOperations sets the operation field.
func WithParameter ¶
WithParameter sets the parameter field.
func WithRecoveryCommitment ¶
WithRecoveryCommitment sets the recovery-commitment field.
func WithRequestBody ¶
WithRequestBody sets the request-body field.
func WithResolutionModel ¶
WithResolutionModel sets the resolution-model field.
func WithServiceName ¶
WithServiceName sets the service field.
func WithSidetreeTxn ¶
WithSidetreeTxn sets the sidetree-txn field.
func WithSuffixes ¶
WithSuffixes sets the suffixes field.
func WithTotalCommitments ¶
WithTotalCommitments sets the total-commitments field.
func WithTotalCreateOperations ¶
WithTotalCreateOperations sets the total-create-operations field.
func WithTotalDeactivateOperations ¶
WithTotalDeactivateOperations sets the total-deactivate-operations field.
func WithTotalOperations ¶
WithTotalOperations sets the total-operations field.
func WithTotalPending ¶
WithTotalPending sets the total-pending field.
func WithTotalRecoverOperations ¶
WithTotalRecoverOperations sets the total-recover-operations field.
func WithTotalUpdateOperations ¶
WithTotalUpdateOperations sets the total-update-operations field.
func WithTransactionNumber ¶
WithTransactionNumber sets the transaction-number field.
func WithTransactionTime ¶
WithTransactionTime sets the transaction-time field.
func WithUpdateCommitment ¶
WithUpdateCommitment sets the update-commitment field.
func WithVersionTime ¶
WithVersionTime sets the version-time 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.
type StringArrayMarshaller ¶
type StringArrayMarshaller struct {
// contains filtered or unexported fields
}
StringArrayMarshaller marshals an array of strings into a log field.
func NewStringArrayMarshaller ¶
func NewStringArrayMarshaller(values []string) *StringArrayMarshaller
NewStringArrayMarshaller returns a new StringArrayMarshaller.
func (*StringArrayMarshaller) MarshalLogArray ¶
func (m *StringArrayMarshaller) MarshalLogArray(e zapcore.ArrayEncoder) error
MarshalLogArray marshals the array.