kafka_proto

package module
v0.0.0-...-ecf4119 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventType_name = map[int32]string{
		0: "Created",
		1: "Updated",
		2: "Removed",
	}
	EventType_value = map[string]int32{
		"Created": 0,
		"Updated": 1,
		"Removed": 2,
	}
)

Enum value maps for EventType.

View Source
var File_hablof_logistic_package_api_v1_kafka_proto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EventType

type EventType int32
const (
	EventType_Created EventType = 0
	EventType_Updated EventType = 1
	EventType_Removed EventType = 2
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

type PackageEvent

type PackageEvent struct {
	ID        uint64                 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	PackageID uint64                 `protobuf:"varint,2,opt,name=PackageID,proto3" json:"PackageID,omitempty"`
	Type      EventType              `protobuf:"varint,3,opt,name=Type,proto3,enum=hablof.proto.v1.EventType" json:"Type,omitempty"`
	Created   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=Created,proto3" json:"Created,omitempty"`
	Payload   []byte                 `protobuf:"bytes,5,opt,name=Payload,proto3" json:"Payload,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageEvent) Descriptor deprecated

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

Deprecated: Use PackageEvent.ProtoReflect.Descriptor instead.

func (*PackageEvent) GetCreated

func (x *PackageEvent) GetCreated() *timestamppb.Timestamp

func (*PackageEvent) GetID

func (x *PackageEvent) GetID() uint64

func (*PackageEvent) GetPackageID

func (x *PackageEvent) GetPackageID() uint64

func (*PackageEvent) GetPayload

func (x *PackageEvent) GetPayload() []byte

func (*PackageEvent) GetType

func (x *PackageEvent) GetType() EventType

func (*PackageEvent) ProtoMessage

func (*PackageEvent) ProtoMessage()

func (*PackageEvent) ProtoReflect

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

func (*PackageEvent) Reset

func (x *PackageEvent) Reset()

func (*PackageEvent) String

func (x *PackageEvent) String() string

Directories

Path Synopsis
google.golang.org
protobuf/types/known/timestamppb
Package timestamppb contains generated types for google/protobuf/timestamp.proto.
Package timestamppb contains generated types for google/protobuf/timestamp.proto.

Jump to

Keyboard shortcuts

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