evtlog

package
v0.0.0-...-653efa9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkForDeletion

func MarkForDeletion()

Mark for deletion causes the the shared memory object to be deleted upon the last Down() call referencing it.

func Record

func Record(formatType FormatType, args ...interface{})

Record is used to log an event to the shared memory object.

func Retrieve

func Retrieve() (formattedRecord string, numDroppedRecords uint64)

Retrieve is used to fetch an event from the shared memory object. If the event log is enabled, the call will block until an event is available. If the event log is not enabled, the call will return an empty string ("").

Types

type FormatType

type FormatType uint32 // Used as index to event slice (so keep this sequence in sync with event slice)

FormatType is an efficiently passed indicator of the event type being logged.

const (
	FormatTestPatternFixed FormatType = iota
	FormatTestPatternS
	FormatTestPatternS03D
	FormatTestPatternS08X
	FormatTestPatternS016X
	FormatTestPatternS016X016X
	FormatTestPatternS016X016X016X
	FormatTestPatternS016Xslice
	FormatTestPatternS016XS
	FormatTestPatternSS
	FormatTestPatternSS03D
	FormatTestPatternSSS
	FormatTestPatternSSS03D
	FormatTestPatternSSS016X03D
	FormatTestPatternSSS016X016X03D
	FormatHalterArm
	FormatHalterDisarm
	FormatAccountDelete
	FormatAccountGet
	FormatAccountHead
	FormatAccountPost
	FormatAccountPut
	FormatContainerDelete
	FormatContainerGet
	FormatContainerHead
	FormatContainerPost
	FormatContainerPut
	FormatObjectDelete
	FormatObjectGet
	FormatObjectHead
	FormatObjectLoad
	FormatObjectRead
	FormatObjectTail
	FormatObjectPutChunkedStart
	FormatObjectPutChunkedEnd
	FormatHeadhunterCheckpointStart
	FormatHeadhunterCheckpointEndSuccess
	FormatHeadhunterCheckpointEndFailure
	FormatHeadhunterRecordTransactionNonceRangeReserve
	FormatHeadhunterRecordTransactionPutInodeRec
	FormatHeadhunterRecordTransactionPutInodeRecs
	FormatHeadhunterRecordTransactionDeleteInodeRec
	FormatHeadhunterRecordTransactionPutLogSegmentRec
	FormatHeadhunterRecordTransactionDeleteLogSegmentRec
	FormatHeadhunterRecordTransactionPutBPlusTreeObject
	FormatHeadhunterRecordTransactionDeleteBPlusTreeObject
	FormatHeadhunterMissingInodeRec
	FormatHeadhunterMissingLogSegmentRec
	FormatHeadhunterMissingBPlusTreeObject
	FormatHeadhunterBPlusTreeNodeFault
	FormatDirFileBPlusTreeNodeFault
	FormatFlushInodesEntry
	FormatFlushInodesDirOrFilePayloadObjectNumberUpdated
	FormatFlushInodesErrorOnInode
	FormatFlushInodesErrorOnHeadhunterPut
	FormatFlushInodesExit
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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