model

package
v0.0.0-...-f137246 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowEvent

func ShowEvent()

ShowEvent is a method to dislay the details of an Event

Types

type Event

type Event struct {
	Name                  string         `yaml:"name"`
	Year                  string         `yaml:"year"`
	City                  string         `yaml:"city"`
	EventTwitter          string         `yaml:"event_twitter"`
	Description           string         `yaml:"description"`
	GoogleAnalytics       string         `yaml:"ga_tracking_id"`
	StartDate             string         `yaml:"startdate"`
	EndDate               string         `yaml:"enddate"`
	CFPDateStart          string         `yaml:"cfp_date_start"`
	CFPDateEnd            string         `yaml:"cfp_date_end"`
	CFPDateAnnounce       string         `yaml:"cfp_date_announce"`
	CFPOpen               string         `yaml:"cfp_open"`
	CFPLink               string         `yaml:"cfp_link"`
	RegistrationDateStart string         `yaml:"registration_date_start"`
	RegistrationDateEnd   string         `yaml:"registration_date_end"`
	RegistrationClosed    string         `yaml:"registration_closed"`
	RegistrationLink      string         `yaml:"registration_link"`
	MastheadBackground    string         `yaml:"masthead_background"`
	Coordinates           string         `yaml:"coordinates"`
	Location              string         `yaml:"location"`
	LocationAddress       string         `yaml:"location_address"`
	NavElements           []NavElement   `yaml:"nav_elements"`
	TeamMembers           []Organizer    `yaml:"team_members"`
	OrganizerEmail        string         `yaml:"organizer_email"`
	ProposalEmail         string         `yaml:"proposal_email"`
	Sponsors              []EventSponsor `yaml:"sponsors"`
	SponsorsAccepted      string         `yaml:"sponsors_accepted"`
	SponsorLevels         []SponsorLevel `yaml:"sponsor_levels"`
}

Event defines a devopsdays event in the data yaml file

func (*Event) Create

func (e *Event) Create(city, year string) (*Event, error)

Create is a method to create a new Event

type EventSponsor

type EventSponsor struct {
	ID    string `yaml:"id"`
	Level string `yaml:"level"`
}

EventSponsor represents a sponsor for an event.

type NavElement struct {
	Name string `yaml:"name"`
}

NavElement represents a navigation element for the event

type Organizer

type Organizer struct {
	Name     string `yaml:"name"`
	Twitter  string `yaml:"twitter,omitempty"`
	Employer string `yaml:"employer,omitempty"`
	Github   string `yaml:"github,omitempty"`
	Facebook string `yaml:"facebook,omitempty"`
	Linkedin string `yaml:"linkedin,omitempty"`
	Website  string `yaml:"website,omitempty"`
	Image    string `yaml:"image,omitempty"`
	Bio      string `yaml:"bio,omitempty"`
}

Organizer defines a devopsdays event organizer

type Speaker

type Speaker struct {
	Name      string
	Title     string
	Website   string `toml:"website,omitempty"`
	Twitter   string `toml:"twitter,omitempty"`
	Facebook  string `toml:"facebook,omitempty"`
	Linkedin  string `toml:"linkedin,omitempty"`
	Github    string `toml:"github,omitempty"`
	Gitlab    string `toml:"gitlab,omitempty"`
	ImagePath string `toml:"image,omitempty"`
	Bio       string
}

Speaker defines a devopsdays event's speaker

type Sponsor struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Sponsor represents a sponsor inside a sponsor data file

type SponsorLevel

type SponsorLevel struct {
	ID    string `yaml:"id"`
	Label string `yaml:"label"`
	Max   int    `yaml:"max,omitempty"`
}

SponsorLevel represents a level of sponsorship for an event

Jump to

Keyboard shortcuts

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