event

package
v0.0.0-...-cb2c959 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 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 BasicEvent

type BasicEvent struct {
	Key       string    `json:"key"`
	Name      string    `json:"name"`
	ShortName string    `json:"shortName"`
	EventType int       `json:"eventType"`
	Lat       *float64  `json:"lat,omitempty"`
	Long      *float64  `json:"long,omitempty"`
	Date      time.Time `json:"date"`
	EndDate   time.Time `json:"endDate"`
}

BasicEvent holds basic information about an event, not including maches.

type Event

type Event struct {
	BasicEvent
	Matches []match.BasicMatch `json:"matches"`
}

Event holds basic information about an event as well as matches.

type Service

type Service interface {
	GetBasicEvents() ([]BasicEvent, error)
	Get(key string, ms match.Service) (Event, error)
	MassUpsert([]BasicEvent) error
}

Service is a store for events.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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