alge

package
v0.0.0-...-e6856b7 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Competitor

type Competitor struct {
	Bib         int       `xml:",attr,omitempty"`
	Lane        int       `xml:",attr,omitempty"`
	Start       time.Time `xml:"Starttime,attr,omitempty"`
	Firsname    string    `xml:",attr,omitempty"`
	Lastname    string    `xml:",attr,omitempty"`
	Country     string    `xml:"Nation,attr,omitempty"`
	Code        string    `xml:",attr,omitempty"`
	Gender      string    `xml:",attr,omitempty"`
	City        string    `xml:",attr,omitempty"`
	Team        string    `xml:",attr,omitempty"`
	Class       string    `xml:",attr,omitempty"`
	Horse       string    `xml:",attr,omitempty"`
	HorseDriver string    `xml:",attr,omitempty"`
	HorserOwner string    `xml:",attr,omitempty"`
}

type Date

type Date time.Time

func (Date) MarshalText

func (d Date) MarshalText() ([]byte, error)

func (*Date) UnmarshalText

func (d *Date) UnmarshalText(text []byte) error

type Distance

type Distance int
const (
	Regular Distance = iota
	Steeplechase
	Hurdles
	Relay
)

func (Distance) MarshalText

func (d Distance) MarshalText() ([]byte, error)

func (*Distance) UnmarshalText

func (d *Distance) UnmarshalText(text []byte) error

type Event

type Event struct {
	Name         string   `xml:",attr,omitempty"`
	ID           string   `xml:"Id,attr,omitempty"`
	Number       int      `xml:"Nr,attr,omitempty"`
	Distance     int      `xml:",attr,omitempty"`
	WindMeas     WindMeas `xml:"WindMeasurement,attr,omitempty"`
	UserDistance string   `xml:",attr,omitempty"`
	DistanceType Distance `xml:",attr,omitempty"`
	Heats        []Heat   `xml:"Heat,omitempty"`
}

type Heat

type Heat struct {
	Name         string       `xml:",attr,omitempty"`
	Start        StartTime    `xml:"ScheduledStarttime,attr,omitempty"`
	ID           string       `xml:"Id,attr,omitempty"`
	Number       int          `xml:"Nr,attr,omitempty"`
	Distance     int          `xml:",attr,omitempty"`
	WindMeas     WindMeas     `xml:",attr,omitempty"`
	UserDistance string       `xml:",attr,omitempty"`
	DistanceType Distance     `xml:",attr,omitempty"`
	Competitors  []Competitor `xml:",omitempty"`
}

type Meet

type Meet struct {
	Name      string    `xml:",attr,omitempty"`
	ID        string    `xml:"Id,attr,omitempty"`
	City      string    `xml:",attr,omitempty"`
	Country   string    `xml:"Nation,attr,omitempty"`
	Organizer string    `xml:",attr,omitempty"`
	Promoter  string    `xml:",attr,omitempty"`
	Timing    string    `xml:",attr,omitempty"`
	Sessions  []Session `xml:"Session,omitempty"`
}

type Session

type Session struct {
	Name     string  `xml:",attr,omitempty"`
	ID       string  `xml:"Id,attr,omitempty"`
	Number   int     `xml:"Nr,attr,omitempty"`
	Location string  `xml:",attr,omitempty"`
	Type     string  `xml:",attr,omitempty"`
	Date     Date    `xml:",attr,omitempty"`
	Events   []Event `xml:"Event,omitempty"`
}

type StartTime

type StartTime time.Time

func (StartTime) MarshalText

func (s StartTime) MarshalText() ([]byte, error)

func (*StartTime) UnmarshalText

func (s *StartTime) UnmarshalText(text []byte) error

type WindMeas

type WindMeas int
const (
	None WindMeas = iota
	TenSecWithDelay
	ThirteenSec
	FiveSec
	TenSec
)

func (WindMeas) MarshalText

func (w WindMeas) MarshalText() ([]byte, error)

func (*WindMeas) UnmarshalText

func (w *WindMeas) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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