records

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kafka

type Kafka struct {
	Topic                string         `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Key                  []byte         `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte         `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp            int64          `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Offset               int64          `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
	Partition            int32          `protobuf:"varint,6,opt,name=partition,proto3" json:"partition,omitempty"`
	Headers              []*KafkaHeader `protobuf:"bytes,7,rep,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

As of 08.21.2021, used in performing Write operations in both CLI & server. It should _probably_ be used for reads, writes and relay. Eventually. ~ds

func (*Kafka) Descriptor

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

func (*Kafka) GetHeaders

func (m *Kafka) GetHeaders() []*KafkaHeader

func (*Kafka) GetKey

func (m *Kafka) GetKey() []byte

func (*Kafka) GetOffset

func (m *Kafka) GetOffset() int64

func (*Kafka) GetPartition

func (m *Kafka) GetPartition() int32

func (*Kafka) GetTimestamp

func (m *Kafka) GetTimestamp() int64

func (*Kafka) GetTopic

func (m *Kafka) GetTopic() string

func (*Kafka) GetValue

func (m *Kafka) GetValue() []byte

func (*Kafka) ProtoMessage

func (*Kafka) ProtoMessage()

func (*Kafka) Reset

func (m *Kafka) Reset()

func (*Kafka) String

func (m *Kafka) String() string

func (*Kafka) XXX_DiscardUnknown

func (m *Kafka) XXX_DiscardUnknown()

func (*Kafka) XXX_Marshal

func (m *Kafka) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Kafka) XXX_Merge

func (m *Kafka) XXX_Merge(src proto.Message)

func (*Kafka) XXX_Size

func (m *Kafka) XXX_Size() int

func (*Kafka) XXX_Unmarshal

func (m *Kafka) XXX_Unmarshal(b []byte) error

type KafkaHeader

type KafkaHeader 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KafkaHeader) Descriptor

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

func (*KafkaHeader) GetKey

func (m *KafkaHeader) GetKey() string

func (*KafkaHeader) GetValue

func (m *KafkaHeader) GetValue() string

func (*KafkaHeader) ProtoMessage

func (*KafkaHeader) ProtoMessage()

func (*KafkaHeader) Reset

func (m *KafkaHeader) Reset()

func (*KafkaHeader) String

func (m *KafkaHeader) String() string

func (*KafkaHeader) XXX_DiscardUnknown

func (m *KafkaHeader) XXX_DiscardUnknown()

func (*KafkaHeader) XXX_Marshal

func (m *KafkaHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KafkaHeader) XXX_Merge

func (m *KafkaHeader) XXX_Merge(src proto.Message)

func (*KafkaHeader) XXX_Size

func (m *KafkaHeader) XXX_Size() int

func (*KafkaHeader) XXX_Unmarshal

func (m *KafkaHeader) XXX_Unmarshal(b []byte) error

type Record added in v0.0.33

type Record struct {
	// Unique id automatically created by plumber
	MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// Identifies which plumber instance received the event
	PlumberId        string `protobuf:"bytes,2,opt,name=plumber_id,json=plumberId,proto3" json:"plumber_id,omitempty"`
	UnixTimestampUtc int64  `protobuf:"varint,99,opt,name=unix_timestamp_utc,json=unixTimestampUtc,proto3" json:"unix_timestamp_utc,omitempty"`
	// Types that are valid to be assigned to Record:
	//	*Record_Kafka
	Record               isRecord_Record `protobuf_oneof:"Record"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Record) Descriptor added in v0.0.33

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

func (*Record) GetKafka added in v0.0.33

func (m *Record) GetKafka() *Kafka

func (*Record) GetMessageId added in v0.0.33

func (m *Record) GetMessageId() string

func (*Record) GetPlumberId added in v0.0.33

func (m *Record) GetPlumberId() string

func (*Record) GetRecord added in v0.0.33

func (m *Record) GetRecord() isRecord_Record

func (*Record) GetUnixTimestampUtc added in v0.0.33

func (m *Record) GetUnixTimestampUtc() int64

func (*Record) ProtoMessage added in v0.0.33

func (*Record) ProtoMessage()

func (*Record) Reset added in v0.0.33

func (m *Record) Reset()

func (*Record) String added in v0.0.33

func (m *Record) String() string

func (*Record) XXX_DiscardUnknown added in v0.0.33

func (m *Record) XXX_DiscardUnknown()

func (*Record) XXX_Marshal added in v0.0.33

func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Record) XXX_Merge added in v0.0.33

func (m *Record) XXX_Merge(src proto.Message)

func (*Record) XXX_OneofWrappers added in v0.0.33

func (*Record) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Record) XXX_Size added in v0.0.33

func (m *Record) XXX_Size() int

func (*Record) XXX_Unmarshal added in v0.0.33

func (m *Record) XXX_Unmarshal(b []byte) error

type Record_Kafka added in v0.0.33

type Record_Kafka struct {
	Kafka *Kafka `protobuf:"bytes,100,opt,name=kafka,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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