Documentation ¶
Index ¶
- Variables
- type EventType
- type PackageEvent
- func (*PackageEvent) Descriptor() ([]byte, []int)deprecated
- func (x *PackageEvent) GetCreated() *timestamppb.Timestamp
- func (x *PackageEvent) GetID() uint64
- func (x *PackageEvent) GetPackageID() uint64
- func (x *PackageEvent) GetPayload() []byte
- func (x *PackageEvent) GetType() EventType
- func (*PackageEvent) ProtoMessage()
- func (x *PackageEvent) ProtoReflect() protoreflect.Message
- func (x *PackageEvent) Reset()
- func (x *PackageEvent) String() string
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
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
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. |
Click to show internal directories.
Click to hide internal directories.