Documentation ¶
Index ¶
Constants ¶
View Source
const ( VERSION = 20220117 // 修改Document的序列化结构时需同步修改此常量 LAST_SIMPLE_CODEC_VERSION = 20220111 // 这个版本及之前的版本使用 simple_codec, 之后的版本使用pb_codec )
Variables ¶
This section is empty.
Functions ¶
func PseudoCloneDocument ¶
func PseudoCloneDocument(doc *Document)
func ReleaseDocument ¶
func ReleaseDocument(doc *Document)
Types ¶
type Document ¶
type Document struct { pool.ReferenceCount Timestamp uint32 zerodoc.Tagger zerodoc.Meter Flags DocumentFlag }
func AcquireDocument ¶
func AcquireDocument() *Document
func CloneDocument ¶
func DecodeForQueueMonitor ¶
func DecodeForQueueMonitor(decoder *codec.SimpleDecoder) (*Document, error)
queue monitor 打印时使用
func (*Document) EncodePB ¶
func (d *Document) EncodePB(encoder *codec.SimpleEncoder, i interface{}) error
func (*Document) WriteBlock ¶
type DocumentFlag ¶
type DocumentFlag uint32
const (
FLAG_PER_SECOND_METRICS DocumentFlag = 1 << iota
)
type FlowProcessor ¶
type FlowProcessor interface { GetName() string Prepare() Process(*datatype.TaggedFlow, bool) []interface{} }
type MeteringProcessor ¶
type MeteringProcessor interface { GetName() string Prepare() Process(*datatype.TaggedFlow, bool) []interface{} }
Click to show internal directories.
Click to hide internal directories.