Documentation
¶
Index ¶
- Variables
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetHolderName() string
- func (x *Metadata) GetIsUsed() bool
- func (x *Metadata) GetIssuedAt() *timestamppb.Timestamp
- func (x *Metadata) GetTicketType() TicketType
- func (x *Metadata) GetValidUntil() *timestamppb.Timestamp
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (m *Metadata) Validate() error
- type MetadataValidationError
- type TicketType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TicketType_name = map[int32]string{ 0: "TICKET_TYPE_UNSPECIFIED", 1: "TICKET_TYPE_EVENT", 2: "TICKET_TYPE_TRANSPORT", 3: "TICKET_TYPE_ENTERTAINMENT", } TicketType_value = map[string]int32{ "TICKET_TYPE_UNSPECIFIED": 0, "TICKET_TYPE_EVENT": 1, "TICKET_TYPE_TRANSPORT": 2, "TICKET_TYPE_ENTERTAINMENT": 3, } )
Enum value maps for TicketType.
View Source
var File_ticket_metadata_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { TicketType TicketType `` /* 134-byte string literal not displayed */ HolderName string `protobuf:"bytes,2,opt,name=holder_name,json=holderName,proto3" json:"holder_name,omitempty"` IssuedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"` ValidUntil *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` IsUsed bool `protobuf:"varint,5,opt,name=is_used,json=isUsed,proto3" json:"is_used,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetHolderName ¶
func (*Metadata) GetIssuedAt ¶
func (x *Metadata) GetIssuedAt() *timestamppb.Timestamp
func (*Metadata) GetTicketType ¶
func (x *Metadata) GetTicketType() TicketType
func (*Metadata) GetValidUntil ¶
func (x *Metadata) GetValidUntil() *timestamppb.Timestamp
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type MetadataValidationError ¶
type MetadataValidationError struct {
// contains filtered or unexported fields
}
MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.
func (MetadataValidationError) Cause ¶
func (e MetadataValidationError) Cause() error
Cause function returns cause value.
func (MetadataValidationError) Error ¶
func (e MetadataValidationError) Error() string
Error satisfies the builtin error interface
func (MetadataValidationError) ErrorName ¶
func (e MetadataValidationError) ErrorName() string
ErrorName returns error name.
func (MetadataValidationError) Field ¶
func (e MetadataValidationError) Field() string
Field function returns field value.
func (MetadataValidationError) Key ¶
func (e MetadataValidationError) Key() bool
Key function returns key value.
func (MetadataValidationError) Reason ¶
func (e MetadataValidationError) Reason() string
Reason function returns reason value.
type TicketType ¶
type TicketType int32
const ( TicketType_TICKET_TYPE_UNSPECIFIED TicketType = 0 TicketType_TICKET_TYPE_EVENT TicketType = 1 TicketType_TICKET_TYPE_TRANSPORT TicketType = 2 TicketType_TICKET_TYPE_ENTERTAINMENT TicketType = 3 )
func (TicketType) Descriptor ¶
func (TicketType) Descriptor() protoreflect.EnumDescriptor
func (TicketType) Enum ¶
func (x TicketType) Enum() *TicketType
func (TicketType) EnumDescriptor
deprecated
func (TicketType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TicketType.Descriptor instead.
func (TicketType) Number ¶
func (x TicketType) Number() protoreflect.EnumNumber
func (TicketType) String ¶
func (x TicketType) String() string
func (TicketType) Type ¶
func (TicketType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.