event

package
v0.0.0-...-8f0a619 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VenueOnline            string = "ONLINE"
	ShowTypeLive           string = "LIVE"
	ShowTypeHologramLive   string = "HOLOGRAM_LIVE"
	ShowTypeOnline         string = "ONLINE"
	TicketTierOnline       string = "ONLINE"
	TicketTierWood         string = "WOOD"
	TicketTierBronze       string = "BRONZE"
	TicketTierSilver       string = "SILVER"
	TicketTierGold         string = "GOLD"
	TypeOrderRuleRangeDate string = "ORDER_RULE_RANGE_DATE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	EventID string
	Name    string
}

type Event

type Event struct {
	ID          string
	Name        string
	Promotors   []Promotor
	Artists     []Artist
	Shows       []Show
	Description string
	Status      string
	OrderRules  OrderRuleAggregation
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type EventRepository

type EventRepository interface {
	FindByID(ctx context.Context, ID string, tx *sql.Tx) (Event, error)
}

func NewEventRepository

func NewEventRepository(logger *logrus.Logger, db *sql.DB) EventRepository

type Location

type Location struct {
	EventID          string
	ShowID           string
	Country          string
	City             string
	FormattedAddress string
	Latitude         float64
	Longitude        float64
}

type LocationRepository

type LocationRepository interface {
	FindByShowID(ctx context.Context, showID string, tx *sql.Tx) (Location, error)
}

func NewLocationRepository

func NewLocationRepository(logger *logrus.Logger, db *sql.DB) LocationRepository

type OrderRuleAggregation

type OrderRuleAggregation struct {
	OrderRuleRangeDate order.OrderRuleRangeDate
	OrderRuleDay       []order.OrderRuleDay
}

type OrderRuleDay

type OrderRuleDay struct {
	EventID string
	Day     int64
}

type OrderRuleMaximumTicket

type OrderRuleMaximumTicket struct {
	EventID string
	Maximum int64
}

type OrderRuleRangeDate

type OrderRuleRangeDate struct {
	EventID   string
	StartDate time.Time
	EndDate   time.Time
}

type Promotor

type Promotor struct {
	EventID string
	Name    string
	Email   string
	Phone   string
}

type Show

type Show struct {
	EventID     string
	ID          string
	Venue       string
	Type        string
	TicketStock []ticket.TicketStock
	Location    *Location
	Time        time.Time
	Status      string
}

type ShowRepository

type ShowRepository interface {
	FindByID(ctx context.Context, ID string, tx *sql.Tx) (Show, error)
	FindManyByEventID(ctx context.Context, eventID string, tx *sql.Tx) ([]Show, error)
}

func NewShowRepository

func NewShowRepository(logger *logrus.Logger, db *sql.DB) ShowRepository

Jump to

Keyboard shortcuts

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