events

package
v0.0.0-...-2cb8bce Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "Created",
		1: "Cancelled",
		2: "AwaitingPayment",
		3: "Completed",
	}
	Status_value = map[string]int32{
		"Created":         0,
		"Cancelled":       1,
		"AwaitingPayment": 2,
		"Completed":       3,
	}
)

Enum value maps for Status.

View Source
var File_createUpdateTicket_proto protoreflect.FileDescriptor
View Source
var File_orderCancelled_proto protoreflect.FileDescriptor
View Source
var File_orderCreated_proto protoreflect.FileDescriptor
View Source
var File_orderStatus_proto protoreflect.FileDescriptor
View Source
var File_signin_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CancelledData

type CancelledData struct {
	Id     string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Ticket *CancelledData_Ticket `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelledData) Descriptor deprecated

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

Deprecated: Use CancelledData.ProtoReflect.Descriptor instead.

func (*CancelledData) GetId

func (x *CancelledData) GetId() string

func (*CancelledData) GetTicket

func (x *CancelledData) GetTicket() *CancelledData_Ticket

func (*CancelledData) ProtoMessage

func (*CancelledData) ProtoMessage()

func (*CancelledData) ProtoReflect

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

func (*CancelledData) Reset

func (x *CancelledData) Reset()

func (*CancelledData) String

func (x *CancelledData) String() string

type CancelledData_Ticket

type CancelledData_Ticket struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelledData_Ticket) Descriptor deprecated

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

Deprecated: Use CancelledData_Ticket.ProtoReflect.Descriptor instead.

func (*CancelledData_Ticket) GetId

func (x *CancelledData_Ticket) GetId() string

func (*CancelledData_Ticket) ProtoMessage

func (*CancelledData_Ticket) ProtoMessage()

func (*CancelledData_Ticket) ProtoReflect

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

func (*CancelledData_Ticket) Reset

func (x *CancelledData_Ticket) Reset()

func (*CancelledData_Ticket) String

func (x *CancelledData_Ticket) String() string

type CreateUpdateTicket

type CreateUpdateTicket struct {
	Title   string  `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Price   float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"`
	Id      string  `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Owner   string  `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	Version uint64  `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUpdateTicket) Descriptor deprecated

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

Deprecated: Use CreateUpdateTicket.ProtoReflect.Descriptor instead.

func (*CreateUpdateTicket) GetId

func (x *CreateUpdateTicket) GetId() string

func (*CreateUpdateTicket) GetOwner

func (x *CreateUpdateTicket) GetOwner() string

func (*CreateUpdateTicket) GetPrice

func (x *CreateUpdateTicket) GetPrice() float64

func (*CreateUpdateTicket) GetTitle

func (x *CreateUpdateTicket) GetTitle() string

func (*CreateUpdateTicket) GetVersion

func (x *CreateUpdateTicket) GetVersion() uint64

func (*CreateUpdateTicket) ProtoMessage

func (*CreateUpdateTicket) ProtoMessage()

func (*CreateUpdateTicket) ProtoReflect

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

func (*CreateUpdateTicket) Reset

func (x *CreateUpdateTicket) Reset()

func (*CreateUpdateTicket) String

func (x *CreateUpdateTicket) String() string

type CreatedData

type CreatedData struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status    Status                 `protobuf:"varint,2,opt,name=status,proto3,enum=Status" json:"status,omitempty"`
	UserId    string                 `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Ticket    *CreatedData_Ticket    `protobuf:"bytes,5,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatedData) Descriptor deprecated

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

Deprecated: Use CreatedData.ProtoReflect.Descriptor instead.

func (*CreatedData) GetExpiresAt

func (x *CreatedData) GetExpiresAt() *timestamppb.Timestamp

func (*CreatedData) GetId

func (x *CreatedData) GetId() string

func (*CreatedData) GetStatus

func (x *CreatedData) GetStatus() Status

func (*CreatedData) GetTicket

func (x *CreatedData) GetTicket() *CreatedData_Ticket

func (*CreatedData) GetUserId

func (x *CreatedData) GetUserId() string

func (*CreatedData) ProtoMessage

func (*CreatedData) ProtoMessage()

func (*CreatedData) ProtoReflect

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

func (*CreatedData) Reset

func (x *CreatedData) Reset()

func (*CreatedData) String

func (x *CreatedData) String() string

type CreatedData_Ticket

type CreatedData_Ticket struct {
	Id    string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatedData_Ticket) Descriptor deprecated

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

Deprecated: Use CreatedData_Ticket.ProtoReflect.Descriptor instead.

func (*CreatedData_Ticket) GetId

func (x *CreatedData_Ticket) GetId() string

func (*CreatedData_Ticket) GetPrice

func (x *CreatedData_Ticket) GetPrice() float64

func (*CreatedData_Ticket) ProtoMessage

func (*CreatedData_Ticket) ProtoMessage()

func (*CreatedData_Ticket) ProtoReflect

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

func (*CreatedData_Ticket) Reset

func (x *CreatedData_Ticket) Reset()

func (*CreatedData_Ticket) String

func (x *CreatedData_Ticket) String() string

type OrderCancelled

type OrderCancelled struct {
	Subject subjects.Subject `protobuf:"varint,1,opt,name=subject,proto3,enum=Subject" json:"subject,omitempty"`
	Data    *CancelledData   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderCancelled) Descriptor deprecated

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

Deprecated: Use OrderCancelled.ProtoReflect.Descriptor instead.

func (*OrderCancelled) GetData

func (x *OrderCancelled) GetData() *CancelledData

func (*OrderCancelled) GetSubject

func (x *OrderCancelled) GetSubject() subjects.Subject

func (*OrderCancelled) ProtoMessage

func (*OrderCancelled) ProtoMessage()

func (*OrderCancelled) ProtoReflect

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

func (*OrderCancelled) Reset

func (x *OrderCancelled) Reset()

func (*OrderCancelled) String

func (x *OrderCancelled) String() string

type OrderCreated

type OrderCreated struct {
	Subject subjects.Subject `protobuf:"varint,1,opt,name=subject,proto3,enum=Subject" json:"subject,omitempty"`
	Data    *CreatedData     `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderCreated) Descriptor deprecated

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

Deprecated: Use OrderCreated.ProtoReflect.Descriptor instead.

func (*OrderCreated) GetData

func (x *OrderCreated) GetData() *CreatedData

func (*OrderCreated) GetSubject

func (x *OrderCreated) GetSubject() subjects.Subject

func (*OrderCreated) ProtoMessage

func (*OrderCreated) ProtoMessage()

func (*OrderCreated) ProtoReflect

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

func (*OrderCreated) Reset

func (x *OrderCreated) Reset()

func (*OrderCreated) String

func (x *OrderCreated) String() string

type SignIn

type SignIn struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SignIn) Descriptor deprecated

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

Deprecated: Use SignIn.ProtoReflect.Descriptor instead.

func (*SignIn) GetPassword

func (x *SignIn) GetPassword() string

func (*SignIn) GetUsername

func (x *SignIn) GetUsername() string

func (*SignIn) ProtoMessage

func (*SignIn) ProtoMessage()

func (*SignIn) ProtoReflect

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

func (*SignIn) Reset

func (x *SignIn) Reset()

func (*SignIn) String

func (x *SignIn) String() string

type Status

type Status int32
const (
	Status_Created         Status = 0
	Status_Cancelled       Status = 1
	Status_AwaitingPayment Status = 2
	Status_Completed       Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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