models

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_storage_proto_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FlatMessage

type FlatMessage struct {
	Fields []*FlatMessage_KV `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

FlatMessage is used for storing unnested log messages so that they can later be searched through in an optimal manner. Fields of the message are stored in a sorted order, allowing access in O(logN) without constructing a new map every time.

func (*FlatMessage) Descriptor deprecated

func (*FlatMessage) Descriptor() ([]byte, []int)

Deprecated: Use FlatMessage.ProtoReflect.Descriptor instead.

func (*FlatMessage) GetFields

func (x *FlatMessage) GetFields() []*FlatMessage_KV

func (*FlatMessage) ProtoMessage

func (*FlatMessage) ProtoMessage()

func (*FlatMessage) ProtoReflect

func (x *FlatMessage) ProtoReflect() protoreflect.Message

func (*FlatMessage) Reset

func (x *FlatMessage) Reset()

func (*FlatMessage) String

func (x *FlatMessage) String() string

type FlatMessage_KV

type FlatMessage_KV struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*FlatMessage_KV) Descriptor deprecated

func (*FlatMessage_KV) Descriptor() ([]byte, []int)

Deprecated: Use FlatMessage_KV.ProtoReflect.Descriptor instead.

func (*FlatMessage_KV) GetKey

func (x *FlatMessage_KV) GetKey() string

func (*FlatMessage_KV) GetValue

func (x *FlatMessage_KV) GetValue() string

func (*FlatMessage_KV) ProtoMessage

func (*FlatMessage_KV) ProtoMessage()

func (*FlatMessage_KV) ProtoReflect

func (x *FlatMessage_KV) ProtoReflect() protoreflect.Message

func (*FlatMessage_KV) Reset

func (x *FlatMessage_KV) Reset()

func (*FlatMessage_KV) String

func (x *FlatMessage_KV) String() string

type PreparedMessage

type PreparedMessage struct {
	Message []byte       `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Flat    *FlatMessage `protobuf:"bytes,2,opt,name=flat,proto3" json:"flat,omitempty"`
	// contains filtered or unexported fields
}

PreparedMessage is the message actually stored in the database, consisting of the original message, which will then be returned from the storage, and a flattened version which is used for fast search.

func (*PreparedMessage) Descriptor deprecated

func (*PreparedMessage) Descriptor() ([]byte, []int)

Deprecated: Use PreparedMessage.ProtoReflect.Descriptor instead.

func (*PreparedMessage) GetFlat

func (x *PreparedMessage) GetFlat() *FlatMessage

func (*PreparedMessage) GetMessage

func (x *PreparedMessage) GetMessage() []byte

func (*PreparedMessage) ProtoMessage

func (*PreparedMessage) ProtoMessage()

func (*PreparedMessage) ProtoReflect

func (x *PreparedMessage) ProtoReflect() protoreflect.Message

func (*PreparedMessage) Reset

func (x *PreparedMessage) Reset()

func (*PreparedMessage) String

func (x *PreparedMessage) String() string

Jump to

Keyboard shortcuts

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