Documentation
¶
Index ¶
Constants ¶
View Source
const ( CreateNewPartyCommand = "CreateNewParty" AddParticipantCommand = "AddParticipant" )
View Source
const ( PartyCreatedEvent = "PartyCreated" ParticipantAddedEvent = "ParticipantAdded" )
View Source
const PartyStreamName = "partyStream"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddParticipant ¶
func (*AddParticipant) MarshalBinary ¶
func (c *AddParticipant) MarshalBinary() ([]byte, error)
func (*AddParticipant) UnmarshalBinary ¶
func (c *AddParticipant) UnmarshalBinary(data []byte) error
type CreateNewParty ¶
type CreateNewParty struct { EventName string DateTime time.Time Lat float64 Lon float64 Radius float64 Address string MaxParticipant int }
func (*CreateNewParty) MarshalBinary ¶
func (c *CreateNewParty) MarshalBinary() ([]byte, error)
func (*CreateNewParty) UnmarshalBinary ¶
func (c *CreateNewParty) UnmarshalBinary(data []byte) error
func (*CreateNewParty) Validate ¶
func (c *CreateNewParty) Validate() error
type ParticipantAdded ¶
type ParticipantAdded struct { EventName string DateTime time.Time Lat float64 Lon float64 Radius float64 Address string Name string Age uint16 Sex int8 }
func (*ParticipantAdded) MarshalBinary ¶
func (p *ParticipantAdded) MarshalBinary() ([]byte, error)
func (*ParticipantAdded) UnmarshalBinary ¶
func (p *ParticipantAdded) UnmarshalBinary(data []byte) error
type PartyCreated ¶
type PartyCreated struct { EventName string DateTime time.Time Lat float64 Lon float64 Radius float64 Address string }
func (*PartyCreated) MarshalBinary ¶
func (p *PartyCreated) MarshalBinary() ([]byte, error)
func (*PartyCreated) UnmarshalBinary ¶
func (p *PartyCreated) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.