-
Notifications
You must be signed in to change notification settings - Fork 567
/
index.pb.zap.go
46 lines (41 loc) · 1.05 KB
/
index.pb.zap.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Code generated by protoc-gen-zap (etc/proto/protoc-gen-zap). DO NOT EDIT.
//
// source: internal/storage/fileset/index/index.proto
package index
import (
zapcore "go.uber.org/zap/zapcore"
)
func (x *Index) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddString("path", x.Path)
enc.AddObject("range", x.Range)
enc.AddObject("file", x.File)
enc.AddInt64("num_files", x.NumFiles)
enc.AddInt64("size_bytes", x.SizeBytes)
return nil
}
func (x *Range) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddInt64("offset", x.Offset)
enc.AddString("last_path", x.LastPath)
enc.AddObject("chunk_ref", x.ChunkRef)
return nil
}
func (x *File) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddString("datum", x.Datum)
data_refsArrMarshaller := func(enc zapcore.ArrayEncoder) error {
for _, v := range x.DataRefs {
enc.AppendObject(v)
}
return nil
}
enc.AddArray("data_refs", zapcore.ArrayMarshalerFunc(data_refsArrMarshaller))
return nil
}