types

package
v0.0.0-...-5fa8032 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 5 Imported by: 0

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

type AddParticipant struct {
	Name string
	Age  uint16
	Sex  int8
}

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

Jump to

Keyboard shortcuts

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