MCPcopy
hub / github.com/dgraph-io/dgraph / Posting

Struct Posting

protos/pb/pb.pb.go:2952–2967  ·  view source on GitHub ↗

Posting messages.

Source from the content-addressed store, hash-verified

2950
2951// Posting messages.
2952type Posting struct {
2953 state protoimpl.MessageState
2954 sizeCache protoimpl.SizeCache
2955 unknownFields protoimpl.UnknownFields
2956
2957 Uid uint64 `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"`
2958 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
2959 ValType Posting_ValType `protobuf:"varint,3,opt,name=val_type,json=valType,proto3,enum=pb.Posting_ValType" json:"val_type,omitempty"`
2960 PostingType Posting_PostingType `protobuf:"varint,4,opt,name=posting_type,json=postingType,proto3,enum=pb.Posting_PostingType" json:"posting_type,omitempty"`
2961 LangTag []byte `protobuf:"bytes,5,opt,name=lang_tag,json=langTag,proto3" json:"lang_tag,omitempty"` // Only set for VALUE_LANG
2962 Facets []*api.Facet `protobuf:"bytes,9,rep,name=facets,proto3" json:"facets,omitempty"`
2963 // TODO: op is only used temporarily. See if we can remove it from here.
2964 Op uint32 `protobuf:"varint,12,opt,name=op,proto3" json:"op,omitempty"`
2965 StartTs uint64 `protobuf:"varint,13,opt,name=start_ts,json=startTs,proto3" json:"start_ts,omitempty"` // Meant to use only inmemory
2966 CommitTs uint64 `protobuf:"varint,14,opt,name=commit_ts,json=commitTs,proto3" json:"commit_ts,omitempty"` // Meant to use only inmemory
2967}
2968
2969func (x *Posting) Reset() {
2970 *x = Posting{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected