Documentation
¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAirlineName() string
- func (x *Event) GetBookingId() string
- func (x *Event) GetBookingState() State
- func (x *Event) GetFlightId() string
- func (x *Event) GetFromEpochMillis() int64
- func (x *Event) GetHotelId() string
- func (x *Event) GetHotelName() string
- func (x *Event) GetToEpochMillis() int64
- func (x *Event) GetUserId() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( State_name = map[int32]string{ 0: "unknown", 1: "unconfirmed", 2: "confirmed", 3: "payment_received", 4: "payment_pending", 5: "planned", 6: "canceled", 7: "checked_in", 8: "checked_out", 9: "review_pending", 10: "reviewed", } State_value = map[string]int32{ "unknown": 0, "unconfirmed": 1, "confirmed": 2, "payment_received": 3, "payment_pending": 4, "planned": 5, "canceled": 6, "checked_in": 7, "checked_out": 8, "review_pending": 9, "reviewed": 10, } )
Enum value maps for State.
View Source
var File_proto_event_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId,proto3" json:"booking_id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
FromEpochMillis int64 `protobuf:"varint,3,opt,name=from_epoch_millis,json=fromEpochMillis,proto3" json:"from_epoch_millis,omitempty"`
ToEpochMillis int64 `protobuf:"varint,4,opt,name=to_epoch_millis,json=toEpochMillis,proto3" json:"to_epoch_millis,omitempty"`
HotelName string `protobuf:"bytes,5,opt,name=hotel_name,json=hotelName,proto3" json:"hotel_name,omitempty"`
HotelId string `protobuf:"bytes,6,opt,name=hotel_id,json=hotelId,proto3" json:"hotel_id,omitempty"`
FlightId string `protobuf:"bytes,7,opt,name=flight_id,json=flightId,proto3" json:"flight_id,omitempty"`
AirlineName string `protobuf:"bytes,8,opt,name=airline_name,json=airlineName,proto3" json:"airline_name,omitempty"`
BookingState State `protobuf:"varint,9,opt,name=booking_state,json=bookingState,proto3,enum=proto.State" json:"booking_state,omitempty"`
// contains filtered or unexported fields
}
func (*Event) Descriptor
deprecated
func (*Event) GetAirlineName ¶
func (*Event) GetBookingId ¶
func (*Event) GetBookingState ¶
func (*Event) GetFlightId ¶
func (*Event) GetFromEpochMillis ¶
func (*Event) GetHotelId ¶
func (*Event) GetHotelName ¶
func (*Event) GetToEpochMillis ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type State ¶
type State int32
const ( State_unknown State = 0 State_unconfirmed State = 1 State_confirmed State = 2 State_payment_received State = 3 State_payment_pending State = 4 State_planned State = 5 State_canceled State = 6 State_checked_in State = 7 State_checked_out State = 8 State_review_pending State = 9 State_reviewed State = 10 )
func (State) Descriptor ¶
func (State) Descriptor() protoreflect.EnumDescriptor
func (State) EnumDescriptor
deprecated
func (State) Number ¶
func (x State) Number() protoreflect.EnumNumber
func (State) Type ¶
func (State) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.