Documentation ¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetEmailWasUpdated() *Event_EmailWasUpdated
- func (x *Event) GetId() string
- func (m *Event) GetKind() isEvent_Kind
- func (x *Event) GetRecordTime() *timestamppb.Timestamp
- func (x *Event) GetWasCreated() *Event_WasCreated
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_EmailWasUpdated
- func (*Event_EmailWasUpdated) Descriptor() ([]byte, []int)deprecated
- func (x *Event_EmailWasUpdated) GetEmail() string
- func (*Event_EmailWasUpdated) ProtoMessage()
- func (x *Event_EmailWasUpdated) ProtoReflect() protoreflect.Message
- func (x *Event_EmailWasUpdated) Reset()
- func (x *Event_EmailWasUpdated) String() string
- type Event_EmailWasUpdated_
- type Event_WasCreated
- func (*Event_WasCreated) Descriptor() ([]byte, []int)deprecated
- func (x *Event_WasCreated) GetBirthDate() *date.Date
- func (x *Event_WasCreated) GetEmail() string
- func (x *Event_WasCreated) GetFirstName() string
- func (x *Event_WasCreated) GetLastName() string
- func (*Event_WasCreated) ProtoMessage()
- func (x *Event_WasCreated) ProtoReflect() protoreflect.Message
- func (x *Event_WasCreated) Reset()
- func (x *Event_WasCreated) String() string
- type Event_WasCreated_
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetBirthDate() *date.Date
- func (x *User) GetEmail() string
- func (x *User) GetFirstName() string
- func (x *User) GetId() string
- func (x *User) GetLastName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_v1_event_proto protoreflect.FileDescriptor
View Source
var File_user_v1_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // The primary identifier for the User. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The timestamp of when the domain event has been recorded. RecordTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=record_time,json=recordTime,proto3" json:"record_time,omitempty"` // All the possible kind of User domain event supported. // // Types that are assignable to Kind: // // *Event_WasCreated_ // *Event_EmailWasUpdated_ Kind isEvent_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
Represents a domain event for a specific User.
func (*Event) Descriptor
deprecated
func (*Event) GetEmailWasUpdated ¶
func (x *Event) GetEmailWasUpdated() *Event_EmailWasUpdated
func (*Event) GetRecordTime ¶
func (x *Event) GetRecordTime() *timestamppb.Timestamp
func (*Event) GetWasCreated ¶
func (x *Event) GetWasCreated() *Event_WasCreated
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_EmailWasUpdated ¶
type Event_EmailWasUpdated struct { // The new User email. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Specifies that the email of an existing User was updated.
func (*Event_EmailWasUpdated) Descriptor
deprecated
func (*Event_EmailWasUpdated) Descriptor() ([]byte, []int)
Deprecated: Use Event_EmailWasUpdated.ProtoReflect.Descriptor instead.
func (*Event_EmailWasUpdated) GetEmail ¶
func (x *Event_EmailWasUpdated) GetEmail() string
func (*Event_EmailWasUpdated) ProtoMessage ¶
func (*Event_EmailWasUpdated) ProtoMessage()
func (*Event_EmailWasUpdated) ProtoReflect ¶
func (x *Event_EmailWasUpdated) ProtoReflect() protoreflect.Message
func (*Event_EmailWasUpdated) Reset ¶
func (x *Event_EmailWasUpdated) Reset()
func (*Event_EmailWasUpdated) String ¶
func (x *Event_EmailWasUpdated) String() string
type Event_EmailWasUpdated_ ¶
type Event_EmailWasUpdated_ struct { // When a User email has been updated. EmailWasUpdated *Event_EmailWasUpdated `protobuf:"bytes,4,opt,name=email_was_updated,json=emailWasUpdated,proto3,oneof"` }
type Event_WasCreated ¶
type Event_WasCreated struct { // The User's first name. FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` // The User's last name. LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // The User's birth name. BirthDate *date.Date `protobuf:"bytes,3,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` // The User's email. Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Specified that a new User was created.
func (*Event_WasCreated) Descriptor
deprecated
func (*Event_WasCreated) Descriptor() ([]byte, []int)
Deprecated: Use Event_WasCreated.ProtoReflect.Descriptor instead.
func (*Event_WasCreated) GetBirthDate ¶
func (x *Event_WasCreated) GetBirthDate() *date.Date
func (*Event_WasCreated) GetEmail ¶
func (x *Event_WasCreated) GetEmail() string
func (*Event_WasCreated) GetFirstName ¶
func (x *Event_WasCreated) GetFirstName() string
func (*Event_WasCreated) GetLastName ¶
func (x *Event_WasCreated) GetLastName() string
func (*Event_WasCreated) ProtoMessage ¶
func (*Event_WasCreated) ProtoMessage()
func (*Event_WasCreated) ProtoReflect ¶
func (x *Event_WasCreated) ProtoReflect() protoreflect.Message
func (*Event_WasCreated) Reset ¶
func (x *Event_WasCreated) Reset()
func (*Event_WasCreated) String ¶
func (x *Event_WasCreated) String() string
type Event_WasCreated_ ¶
type Event_WasCreated_ struct { // When a new User has been created. WasCreated *Event_WasCreated `protobuf:"bytes,3,opt,name=was_created,json=wasCreated,proto3,oneof"` }
type User ¶
type User struct { // The User's primary unique identifier. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The User's first name. FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` // The User's last name. LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // The User's birth date. BirthDate *date.Date `protobuf:"bytes,4,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` // The User's email. Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Represents a User resource.
func (*User) Descriptor
deprecated
func (*User) GetBirthDate ¶
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.