structExample

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color int

@JsonEnum( base = "Color", unknown = "Unknown", stripped = "true", tolerant = "true" )

const (
	ColorUnknown Color = iota
	ColorRed
	ColorGreen
	ColorBlue
)

type CyclistCreated

type CyclistCreated struct {
	Year        int      `json:"year"`
	CyclistUID  string   `json:"cyclistUid"`
	CyclistName string   `json:"cyclistName"`
	CyclistTeam string   `json:"cyclistTeam"`
	Metadata    Metadata `json:"-"`
}

@JsonStruct() @Event(aggregate = "Tour")

func (CyclistCreated) GetUID

func (t CyclistCreated) GetUID() string

type EtappeCreated

type EtappeCreated struct {
	Year                 int       `json:"year"`
	EtappeUID            string    `json:"etappeUid"`
	EtappeDate           time.Time `json:"etappeDate"`
	EtappeStartLocation  string    `json:"etappeStartLocation"`
	EtappeFinishLocation string    `json:"etappeFinishLocation"`
	EtappeLength         int       `json:"etappeLength"`
	EtappeKind           int       `json:"etappeKind"`
	Metadata             Metadata  `json:"-"`
}

@Event(aggregate = "Tour")

func (EtappeCreated) GetUID

func (t EtappeCreated) GetUID() string

type EtappeResultsCreated

type EtappeResultsCreated struct {
	Year                     int      `json:"year"`
	EtappeUID                string   `json:"EtappeUid"`
	BestDayCyclistIds        []string `json:"bestDayCyclistIds"`
	BestAllrounderCyclistIds []string `json:"bestAllrounderCyclistIds"`
	BestSprinterCyclistIds   []string `json:"bestSprinterCyclistIds"`
	BestClimberCyclistIds    []string `json:"bestClimberCyclistIds"`
	Metadata                 Metadata `json:"-"`
}

@Event(aggregate = "Tour")

func (EtappeResultsCreated) GetUID

func (t EtappeResultsCreated) GetUID() string

type GamblerCreated

type GamblerCreated struct {
	GamblerUID       string   `json:"gamblerUid"`
	GamblerName      string   `json:"gamblerName"`
	GamblerEmail     string   `json:"gamblerEmail"`
	GamblerImageIUrl string   `json:"gamblerImageIUrl"`
	Metadata         Metadata `json:"-"`
}

@Event(aggregate = "Gambler")

func (GamblerCreated) GetUID

func (t GamblerCreated) GetUID() string

type GamblerTeamCreated

type GamblerTeamCreated struct {
	GamblerUID      string   `json:"gamblerUid"`
	Year            int      `json:"year"`
	GamblerCyclists []string `json:"gamblerCyclists"`
	Metadata        Metadata `json:"-"`
}

@Event(aggregate = "Gambler")

func (GamblerTeamCreated) GetUID

func (t GamblerTeamCreated) GetUID() string

type Metadata

type Metadata struct {
	UUID          string
	Timestamp     time.Time
	EventTypeName string
}

type NewsItemCreated

type NewsItemCreated struct {
	Year              int      `json:"year"`
	Message           string   `json:"message"`
	Sender            string   `json:"sender"`
	RelatedCyclistUID string   `json:"relatedCyclistUid"`
	RelatedEtappeUID  string   `json:"relatedEtappeUid"`
	Metadata          Metadata `json:"-"`
}

@Event(aggregate = "News")

func (NewsItemCreated) GetUID

func (t NewsItemCreated) GetUID() string

type TourCreated

type TourCreated struct {
	Year     int      `json:"year"`
	Tags     []string `json:"tags"`
	Metadata Metadata `json:"-"`
}

@JsonStruct() @Event( aggregate = "Tour")

func (TourCreated) GetUID

func (t TourCreated) GetUID() string

type Word

type Word int

@JsonEnum( )

const (
	Aap Word = iota
	Noot
	Mies
)

Jump to

Keyboard shortcuts

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