entities

package
v0.0.0-...-c9dde30 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	ID     string      `gorm:"primaryKey"`
	Labels []AreaLabel `gorm:"foreignKey:AreaID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (Area) GetID

func (area Area) GetID() string

func (Area) GetLabels

func (area Area) GetLabels() map[amqp.Language]string

type AreaLabel

type AreaLabel struct {
	Locale amqp.Language `gorm:"primaryKey"`
	AreaID string        `gorm:"primaryKey"`
	Label  string
}

type Characteristic

type Characteristic struct {
	ID        string `gorm:"primaryKey"`
	Emoji     string
	SortOrder int                   `gorm:"unique"`
	Regexes   []RegexCharacteristic `gorm:"foreignKey:CharacteristicID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

type City

type City struct {
	ID     string `gorm:"primaryKey"`
	Icon   string
	Emoji  string
	Type   constants.CityType
	Color  int
	Game   amqp.Game   `gorm:"primaryKey"`
	Labels []CityLabel `gorm:"foreignKey:CityID,Game;references:ID,Game;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func GetNeutralCity

func GetNeutralCity() City

func (City) GetID

func (city City) GetID() string

func (City) GetLabels

func (city City) GetLabels() map[amqp.Language]string

type CityLabel

type CityLabel struct {
	CityID string        `gorm:"primaryKey"`
	Game   amqp.Game     `gorm:"primaryKey"`
	Locale amqp.Language `gorm:"primaryKey"`
	Label  string
}

type Dimension

type Dimension struct {
	ID     string `gorm:"primaryKey"`
	Icon   string
	Color  int
	Labels []DimensionLabel `gorm:"foreignKey:DimensionID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (Dimension) GetID

func (dimension Dimension) GetID() string

func (Dimension) GetLabels

func (dimension Dimension) GetLabels() map[amqp.Language]string

type DimensionLabel

type DimensionLabel struct {
	Locale      amqp.Language `gorm:"primaryKey"`
	DimensionID string        `gorm:"primaryKey"`
	Label       string
}

type Emoji

type Emoji struct {
	ID          string              `gorm:"primaryKey"`
	Type        constants.EmojiType `gorm:"primaryKey"`
	DiscordName string
	Snowflake   string
	Name        string
}

type FeedType

type FeedType struct {
	ID     string          `gorm:"primaryKey"`
	Labels []FeedTypeLabel `gorm:"foreignKey:FeedTypeID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (FeedType) GetID

func (feedType FeedType) GetID() string

func (FeedType) GetLabels

func (feedType FeedType) GetLabels() map[amqp.Language]string

type FeedTypeLabel

type FeedTypeLabel struct {
	Locale     amqp.Language `gorm:"primaryKey"`
	FeedTypeID string        `gorm:"primaryKey"`
	Label      string
}

type Guild

type Guild struct {
	ID string `gorm:"primaryKey"`
}

type Job

type Job struct {
	ID     string `gorm:"primaryKey"`
	Icon   string
	Color  int
	Game   amqp.Game  `gorm:"primaryKey"`
	Labels []JobLabel `gorm:"foreignKey:JobID,Game;references:ID,Game;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (Job) GetID

func (job Job) GetID() string

func (Job) GetLabels

func (job Job) GetLabels() map[amqp.Language]string

type JobLabel

type JobLabel struct {
	JobID  string        `gorm:"primaryKey"`
	Game   amqp.Game     `gorm:"primaryKey"`
	Locale amqp.Language `gorm:"primaryKey"`
	Label  string
}

type LabelledEntity

type LabelledEntity interface {
	GetID() string
	GetLabels() map[amqp.Language]string
}

type Order

type Order struct {
	ID         string `gorm:"primaryKey"`
	EmojiDark  string
	EmojiLight string
	Game       amqp.Game    `gorm:"primaryKey"`
	Labels     []OrderLabel `gorm:"foreignKey:OrderID,Game;references:ID,Game;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (Order) GetID

func (order Order) GetID() string

func (Order) GetLabels

func (order Order) GetLabels() map[amqp.Language]string

type OrderLabel

type OrderLabel struct {
	OrderID string        `gorm:"primaryKey"`
	Game    amqp.Game     `gorm:"primaryKey"`
	Locale  amqp.Language `gorm:"primaryKey"`
	Label   string
}

type RegexCharacteristic

type RegexCharacteristic struct {
	CharacteristicID string `gorm:"primaryKey"`
	Expression       string `gorm:"primaryKey"`
	Emoji            string
}

type Server

type Server struct {
	ID     string `gorm:"primaryKey"`
	Icon   string
	Emoji  string
	Game   amqp.Game
	Labels []ServerLabel `gorm:"foreignKey:ServerID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (Server) GetID

func (server Server) GetID() string

func (Server) GetLabels

func (server Server) GetLabels() map[amqp.Language]string

type ServerLabel

type ServerLabel struct {
	Locale   amqp.Language `gorm:"primaryKey"`
	ServerID string        `gorm:"primaryKey"`
	Label    string
}

type Streamer

type Streamer struct {
	ID     string `gorm:"primaryKey"`
	Name   string
	Locale amqp.Language
}

func (Streamer) GetID

func (streamer Streamer) GetID() string

func (Streamer) GetLabels

func (streamer Streamer) GetLabels() map[amqp.Language]string

type SubArea

type SubArea struct {
	ID     string         `gorm:"primaryKey"`
	Labels []SubAreaLabel `gorm:"foreignKey:SubAreaID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (SubArea) GetID

func (subArea SubArea) GetID() string

func (SubArea) GetLabels

func (subArea SubArea) GetLabels() map[amqp.Language]string

type SubAreaLabel

type SubAreaLabel struct {
	Locale    amqp.Language `gorm:"primaryKey"`
	SubAreaID string        `gorm:"primaryKey"`
	Label     string
}

type TransportType

type TransportType struct {
	ID     string `gorm:"primaryKey"`
	Emoji  string
	Labels []TransportTypeLabel `gorm:"foreignKey:TransportTypeID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (TransportType) GetID

func (transportType TransportType) GetID() string

func (TransportType) GetLabels

func (transportType TransportType) GetLabels() map[amqp.Language]string

type TransportTypeLabel

type TransportTypeLabel struct {
	Locale          amqp.Language `gorm:"primaryKey"`
	TransportTypeID string        `gorm:"primaryKey"`
	Label           string
}

type TwitterAccount

type TwitterAccount struct {
	ID   string `gorm:"primaryKey"`
	Name string
	Game amqp.Game
}

func (TwitterAccount) GetID

func (twittterAccount TwitterAccount) GetID() string

func (TwitterAccount) GetLabels

func (twittterAccount TwitterAccount) GetLabels() map[amqp.Language]string

type Videast

type Videast struct {
	ID     string `gorm:"primaryKey"`
	Name   string
	Locale amqp.Language
}

func (Videast) GetID

func (videast Videast) GetID() string

func (Videast) GetLabels

func (videast Videast) GetLabels() map[amqp.Language]string

Jump to

Keyboard shortcuts

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